Author Topic: Advice needed for unwanted behaviour (moving elements)  (Read 2559 times)

Ty Carey

  • Guest
Advice needed for unwanted behaviour (moving elements)
« 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

theprojectabot

  • Guest
Re: Advice needed for unwanted behaviour (moving elements)
« Reply #1 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?

Ty Carey

  • Guest
Re: Advice needed for unwanted behaviour (moving elements)
« Reply #2 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Advice needed for unwanted behaviour (moving elements)
« Reply #3 on: March 09, 2013, 02:55:33 AM »
Sounds like you did something funky, likely related to using a UIAnchor.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Advice needed for unwanted behaviour (moving elements)
« Reply #4 on: March 09, 2013, 04:26:20 PM »
Which version of NGUI are you using?