Author Topic: Different position of button in editor and in game  (Read 2132 times)

konsnos

  • Newbie
  • *
  • Thank You
  • -Given: 8
  • -Receive: 0
  • Posts: 26
    • View Profile
Different position of button in editor and in game
« on: April 15, 2014, 04:54:49 AM »
Attached images. Seems weird and these are in the same resolution. Am I doing something wrong?
I am using anchors in order to keep the buttons to the positions I want.


konsnos

  • Newbie
  • *
  • Thank You
  • -Given: 8
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: Different position of button in editor and in game
« Reply #1 on: April 15, 2014, 04:56:26 AM »
False alarm. I think I understood what's happening here. Apparently the pink rectangle is not the camera but the panel :P I wanted the panel to be fixed size of the camera viewport. Can somebody point me out how to do that?

Edit: I think I solved it. Damn it, I was too hasty. My apologies for consuming that forum part. I'm new to NGUI and a bit anxious on understanding it.
« Last Edit: April 15, 2014, 05:10:26 AM by konsnos »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Different position of button in editor and in game
« Reply #2 on: April 15, 2014, 09:37:38 AM »
In the future, never hide the Game View behind the Scene View like that. It makes it impossible to determine its width and height.

konsnos

  • Newbie
  • *
  • Thank You
  • -Given: 8
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: Different position of button in editor and in game
« Reply #3 on: April 16, 2014, 03:43:28 AM »
In the future, never hide the Game View behind the Scene View like that. It makes it impossible to determine its width and height.
I'll keep that in mind. Thank you :)