-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to send game view in high resolutions but to let window size of app keep smaller . #13
Comments
If it's an exported, standalone Unity app you probably need to go through a render-to-texture camera to customize the resolution. |
Thanks for replying. |
Can you have a look at the UnityCaptureMultiCam scene in the UnityCaptureSample project? public Camera CaptureCamera1, CaptureCamera2;
...
CaptureCamera1.targetTexture = new RenderTexture(CaptureResolutionWidth, CaptureResolutionHeight, 24);
CaptureCamera2.targetTexture = new RenderTexture(CaptureResolutionWidth, CaptureResolutionHeight, 24);
...
Graphics.DrawTexture(new Rect( 0, h, whalf, -h), CaptureCamera1.targetTexture);
Graphics.DrawTexture(new Rect(whalf, h, whalf, -h), CaptureCamera2.targetTexture); to public Camera CaptureCamera;
...
CaptureCamera.targetTexture = new RenderTexture(CaptureResolutionWidth, CaptureResolutionHeight, 24);
...
Graphics.DrawTexture(new Rect( 0, h, w, -h), CaptureCamera.targetTexture); Also notice the |
I'm using UnityCapture to send game view to other app. The resolution sent from Unity app want to be high resolution but window size of Unity app itself need to be smaller.
Is it possible?
The text was updated successfully, but these errors were encountered: