Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: konsnos on April 15, 2014, 04:54:49 AM

Title: Different position of button in editor and in game
Post by: konsnos 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.
(https://dl.dropboxusercontent.com/u/3094026/Unity3D/Bugs/button_editor.png)
(https://dl.dropboxusercontent.com/u/3094026/Unity3D/Bugs/button_ingame.png)
Title: Re: Different position of button in editor and in game
Post by: konsnos 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.
Title: Re: Different position of button in editor and in game
Post by: ArenMook 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.
Title: Re: Different position of button in editor and in game
Post by: konsnos 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 :)