Welcome,
Guest
. Please
login
or
register
.
May 04, 2026, 01:51:09 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIRoot Position Bug
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: UIRoot Position Bug (Read 13788 times)
vexir
Newbie
Thank You
-Given: 0
-Receive: 1
Posts: 47
UIRoot Position Bug
«
on:
July 03, 2014, 11:54:53 PM »
Hi there,
I'm on the latest version from the repo (ec92cfa). I seem to be getting a bug where moving the UI Root vertically causes the magenta visualization rectangle in the Scene to become offset from the actual root.
GIF for clarity:
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIRoot Position Bug
«
Reply #1 on:
July 04, 2014, 02:01:08 PM »
What are the steps to reproduce this? I don't seem to be getting that by moving the root, or any other panel. I tried:
1. New scene.
2. ALT+SHIFT+S
3. Drag the UIRoot.
Logged
vexir
Newbie
Thank You
-Given: 0
-Receive: 1
Posts: 47
Re: UIRoot Position Bug
«
Reply #2 on:
July 05, 2014, 01:40:53 PM »
I'm honestly not sure what else. It's a blank scene minus some scripts to instantiate objects on runtime. Here's the inspector for the UI Root object and the UI Camera. Beyond that, it's an iOS project in Unity Pro 4.5. If there's any other information I can give you, or if there's a specific place in code where you draw the box and you'd like me to do some debugging, let me know.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIRoot Position Bug
«
Reply #3 on:
July 05, 2014, 10:03:28 PM »
Looking closer at your screenshot I am seeing the scene view's grid move off as well. Something seriously weird is going on there. Why is the grid moving?
I duplicated your inspector settings and everything still works as expected. Can you try my steps? I'm not sure what the "Singleton Across Scenes" does.
Logged
vexir
Newbie
Thank You
-Given: 0
-Receive: 1
Posts: 47
Re: UIRoot Position Bug
«
Reply #4 on:
July 06, 2014, 06:28:16 AM »
I did your three steps, and it worked fine. Then I changed the Scaling Style to "Fixed Size On Mobiles" and it started happening again. So there you go! Diagnosed.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIRoot Position Bug
«
Reply #5 on:
July 07, 2014, 01:50:38 AM »
Nope. Fixed Size on Mobiles still works fine.
Logged
vexir
Newbie
Thank You
-Given: 0
-Receive: 1
Posts: 47
Re: UIRoot Position Bug
«
Reply #6 on:
July 07, 2014, 02:04:21 AM »
You're on Unity 4.5.1 with your build settings set to iOS?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIRoot Position Bug
«
Reply #7 on:
July 07, 2014, 04:13:51 AM »
4.5.0f6, Android.
Logged
vexir
Newbie
Thank You
-Given: 0
-Receive: 1
Posts: 47
Re: UIRoot Position Bug
«
Reply #8 on:
July 07, 2014, 10:42:17 AM »
Maybe try my settings / version?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIRoot Position Bug
«
Reply #9 on:
July 08, 2014, 08:44:16 AM »
I tried all manner of things and I simply cannot reproduce it. I can't keep chasing a ghost here... and no one else has reported anything similar either. Perhaps it's something with your project? I don't know...
Logged
freeExec
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 8
Re: UIRoot Position Bug
«
Reply #10 on:
July 08, 2014, 08:52:41 AM »
Reproduce
UIRoot.position != Vector3.zero
UIRoot.scaling == FixedSize
UIRoot.ManualHeight != UIPanel.GetViewSize().y
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIRoot Position Bug
«
Reply #11 on:
July 08, 2014, 08:57:24 AM »
One thought comes to mind: is your camera outside your UIRoot?
Logged
freeExec
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 8
Re: UIRoot Position Bug
«
Reply #12 on:
July 08, 2014, 09:03:39 AM »
No. Momoent key - uiroot manual height does not match the height of the window size "Gama"
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIRoot Position Bug
«
Reply #13 on:
July 08, 2014, 09:15:50 AM »
That was a question for vexir, freeExec. I honestly don't understand either of your two posts.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIRoot Position Bug
«
Reply #14 on:
July 08, 2014, 10:56:00 AM »
On another note: putting the camera outside the UIRoot indeed causes some weirdness, and I've investigated and fixed the issue. Try the latest from Github, vexir.
Logged
Print
Pages: [
1
]
2
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIRoot Position Bug