Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: nzen on June 26, 2013, 06:52:32 AM

Title: UIAnchor not allowing me to save scene
Post by: nzen on June 26, 2013, 06:52:32 AM
I get an asterisk in the top-left of unity, showing that the scene is unsaved. When exiting it asks if I want to save. It does save properly, but the asterisk remains.

If I disable the UIAnchor on all of my Anchors it will save. Also, if I add a new UI with camera/anchor/panel auto-attached, it saves too (as long as my previous UIAnchor's are disabled).
Title: Re: UIAnchor not allowing me to save scene
Post by: Nicki on June 26, 2013, 07:42:40 AM
The UIAnchors modify the position of the transforms, which makes the scene modified. If you've saved before, then it should be fine.
Title: Re: UIAnchor not allowing me to save scene
Post by: nzen on June 26, 2013, 09:02:35 AM
I managed to fix it by resetting the Panel position/scale. Somehow it had changed to strange decimal values when I duplicated it.

I also added an empty gameobject to the panel, and attached a UIAnchor to it.

One of those two changes fixed it.