Author Topic: scene view doesnt match game view  (Read 2445 times)

PapaWhiskey

  • Guest
scene view doesnt match game view
« on: April 26, 2013, 11:38:57 AM »
scene/game view in editor do not match actual views when running (in editor...have to move to device to test there too)...what settings might be causing this?

also i can run in the editor, the widgets will not be positioned correctly, but in scene/game view they will reflect that things are not right.

pause/stop...editor will hold bad positions till moving any widget at which time scene/game view decides it's "right" again...run in editor, back to incorrect placement

cbartlett

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 43
    • View Profile
Re: scene view doesnt match game view
« Reply #1 on: April 26, 2013, 12:10:53 PM »
Anchors can change this, but I believe the UIRoot settings and the player settings can as well.  The first this I do is change the script execution order and have a master script run first thing.

We have resorted to this master custom start up(awake) which maintains one direction as our constant and then setting the other based off of the screen size.  Then we set up the panels so that they will maintain a known locations base off of these settings.

It has a lot to do with how the UIRoot, panels and transforms are set up. 

I have to spend a lot of time verifying that the transform is oriented correctly with respect to where the widgets will be expected to display.  IE if it is a center based display make sure that the top most transform is moved accordingly.  Note that the move arrow in editor will get the middle of the extents not the tranform of the selected item. 

Same goes for anything that is attached to a side.  We try to always use the correct alignment on those items.

All in all it has been a bunch of testing and once I get it correct, I try never to touch it...

Sorry I can't provide a better directions on your problem.