Author Topic: Emulating a portrait on PS Vita project  (Read 6032 times)

dandrea

  • Newbie
  • *
  • Thank You
  • -Given: 6
  • -Receive: 2
  • Posts: 23
    • View Profile
Emulating a portrait on PS Vita project
« 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?!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Emulating a portrait on PS Vita project
« Reply #1 on: October 02, 2014, 09:58:01 PM »
Well, rotating it is easy -- just either rotate the camera, or the UIRoot.

dandrea

  • Newbie
  • *
  • Thank You
  • -Given: 6
  • -Receive: 2
  • Posts: 23
    • View Profile
Re: Emulating a portrait on PS Vita project
« Reply #2 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!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Emulating a portrait on PS Vita project
« Reply #3 on: November 19, 2014, 03:21:47 PM »
UICamera doesn't need to be under UIRoot. You can move it out.

dandrea

  • Newbie
  • *
  • Thank You
  • -Given: 6
  • -Receive: 2
  • Posts: 23
    • View Profile
Re: Emulating a portrait on PS Vita project
« Reply #4 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! :-)