Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Ty Carey on March 08, 2013, 06:32:31 PM

Title: Advice needed for unwanted behaviour (moving elements)
Post by: Ty Carey on March 08, 2013, 06:32:31 PM
Hi y'all - I'm a noob here so excuse me if this is a common or easy problem to solve.

I'm having trouble with a parent camera that's used for our 2D UI menu - when the game plays it moves position on it's own up towards the top left. This behaviour's new - it never used to do this and my project assets are up to date with other developers who do not have the same issue.

This wouldn't be such a problem if the second issue didn't exist - in the scene view (no game playing), whenever I move ANY element the camera decides to start moving (and taking all the UI children with it) - almost like any moving element adds a translation to the camera. It always adds to it's X and Y values.

I'm at a complete loss - I think my next step is to remove and reinstall unity.

Any advice appreciated!
Ty
Title: Re: Advice needed for unwanted behaviour (moving elements)
Post by: theprojectabot on March 08, 2013, 06:55:36 PM
So have you made Animations attached to this root?  perhaps when you fire other animations you accidentally created a curve for your UI Root and soe it acts when you fire off that animation.

Do you have some anchor attached?
Title: Re: Advice needed for unwanted behaviour (moving elements)
Post by: Ty Carey on March 08, 2013, 11:28:39 PM
No animation as far as I can see ... but why would it move consistently top left when the game isn't even running in the scene when I move any UI element?
Title: Re: Advice needed for unwanted behaviour (moving elements)
Post by: ArenMook on March 09, 2013, 02:55:33 AM
Sounds like you did something funky, likely related to using a UIAnchor.
Title: Re: Advice needed for unwanted behaviour (moving elements)
Post by: Nicki on March 09, 2013, 04:26:20 PM
Which version of NGUI are you using?