Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Instant Preview orientation problem. #252

Closed
SetoKaiba opened this issue Jun 8, 2018 · 6 comments
Closed

Instant Preview orientation problem. #252

SetoKaiba opened this issue Jun 8, 2018 · 6 comments

Comments

@SetoKaiba
Copy link

Default orientation of my app is landscape left.
If the Instant Preview app is not launched on the phone, the Unity Editor launch the Instant preview app.
And the camera feed is of correct orientation.
If the Instant Preview app is launched, the Unity Editor just try to connect the Instant preview app and use the wrong orientation camera feed. It's rotated and stretched.

@EricBatlle
Copy link

@SetoKaiba did you try to change your editor aspect? Maybe if you have Free Aspect the editor gets a little crazy, if you concret the aspect on the same editor maybe it will work. This works for me a couple of times.

@SetoKaiba
Copy link
Author

SetoKaiba commented Jun 11, 2018

@ls29322 I use the same resolution from Pixel 2 XL.
case 1:

  1. Ensure the Instant Preview App is not launched on the Phone.
  2. Run the game in Unity3D.
  3. Instant Preview app is launched, the UI is landscape left.
  4. The rotation is correct as the game landscape left. And from the log, I can read that the resolution is 2720 * 1440.

case 2:

  1. The Instant Preview app is launched on the phone as the previous case, the UI is landscape left.
  2. Run the game in Unity3D.
  3. Unity connects the phone only, with the launched landscape left UI.
  4. The camera feed in Unity3D is rotated and stretched. And from the log, I can read that the resolution is 1440 * 2720.

@SetoKaiba
Copy link
Author

The case is for USB mode only.
I have to close Instant Preview app everytime before I run the game in Unity3D.

@gstanlo gstanlo added the bug label Jun 12, 2018
@yosun
Copy link

yosun commented Sep 13, 2018

Perhaps just have the Instant Preview app auto-kill itself after each session.

@fredsa
Copy link

fredsa commented Jan 10, 2019

Duplicate of #484

@fredsa fredsa marked this as a duplicate of #484 Jan 10, 2019
@fredsa fredsa closed this as completed Jan 10, 2019
@fredsa
Copy link

fredsa commented Jan 10, 2019

Try also resize the game window to be more landscape or more portrait. Either resize the window in the editor, or change the "Free Aspect" drop down to use a resolution that's explicitly landscape or portrait in dimensions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants