Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: dandrea on October 01, 2014, 06:34:12 PM

Title: Emulating a portrait on PS Vita project
Post by: dandrea on October 01, 2014, 06:34:12 PM
Hello all.

We're just porting a project with a complex UI made with NGUI to PS Vita. It's a portrait game, so the user is expected to play it holding PS Vita sideways.

My problem is that, while Unity has a portrait/landscape option on iOS and Android Player Settings, there's no such a thing for the PS Vita Player Settings.

This means I'll have to find a way of rotating a PixelPerfect (but locked to 2048 px height), 2D UI in 90ยบ so it gets sideways.

How can such a thing be done?!
Title: Re: Emulating a portrait on PS Vita project
Post by: ArenMook on October 02, 2014, 09:58:01 PM
Well, rotating it is easy -- just either rotate the camera, or the UIRoot.
Title: Re: Emulating a portrait on PS Vita project
Post by: dandrea on November 18, 2014, 10:08:54 AM
As every UI objects are children to both UIRoot and Camera, this has just no effect at all over the UI.

I tried to add a empty gameobject as a child to the camera and parent every UI stuff to it, then rotating this GO. Didn't work at all.

I'm started to try to get comfortable with the idea of branching the project to PS Vita and redo all the UI stuff.  :-[

Any extra ideas would be nice!
Title: Re: Emulating a portrait on PS Vita project
Post by: ArenMook on November 19, 2014, 03:21:47 PM
UICamera doesn't need to be under UIRoot. You can move it out.
Title: Re: Emulating a portrait on PS Vita project
Post by: dandrea on November 19, 2014, 03:36:44 PM
...and link all panels directly to the UIRoot, then? I should give this a try. I'll come back on this later! :-)