Author Topic: UI Constant Resizing in Editor Window  (Read 1372 times)

shaggydog

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
UI Constant Resizing in Editor Window
« on: April 07, 2014, 04:56:51 AM »
Hi,

Im trying to create a GUI for an iPhone 5 screen (1136x640px). However, I cannot seem to find a way to keep the GUI sized correctly whilst creating it in editor window
-when I press play the GUI resizes to the correct size
-Stop play and GUI is correct size in editor window
-Start changing GUI, guy snaps to a set size that seems to have no correlation to any settings.

Is there anyway to manually set the GUI size in the editor window so it doesn't snap between sizes?

Thanks

Below is a pic of the issue - the pink is line is the main panel which is 1135x640px and the bars bottom is anchored to the bottom of the panel at 0 px distance however there is a distinct difference when in the editor window - when in game its in the correct position
« Last Edit: April 07, 2014, 05:05:13 AM by shaggydog »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Constant Resizing in Editor Window
« Reply #1 on: April 07, 2014, 09:53:05 PM »
1. Make sure the Game View is visible. Don't hide it behind the scene view. <-- this is very important
2. Set UIRoot to Fixed Size, height 640.
3. Set the game view's resolution to 1136x640.