Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: schneidb on February 20, 2014, 12:42:08 PM

Title: Why is any scene with an NGUI UI marked as dirty when the scene is open?
Post by: schneidb on February 20, 2014, 12:42:08 PM
Why is any scene with an NGUI UI marked as dirty when the scene is open?  I have different NGUI Roots, panels, widgets, etc. in different scenes.  In every scene, the scene is marked as dirty when I open it.  This is pretty frustrating because it makes it difficult to remember when I have actually edited a scene and need to save it (and commit the change to svn).  Is this just an issue with NGUI or have I done something wrong with my implementation?

Thanks.
Title: Re: Why is any scene with an NGUI UI marked as dirty when the scene is open?
Post by: ArenMook on February 21, 2014, 03:56:08 PM
That is one question I have not been able to figure out an answer to myself. Even removing all instances of SetDirty calls and adding extensive Debug.Logs, I saw no clear indication of what was causing the scene to get marked as edited.

Even creating a scene, adding a UIPanel with an invisible widget under it, then disabling both components, saving the scene, deselecting the object, and alt-tabbing twice marks the scene as edited.
Title: Re: Why is any scene with an NGUI UI marked as dirty when the scene is open?
Post by: ArenMook on February 21, 2014, 04:01:59 PM
Edit: On second thought... it might be the OnApplicationPause function in UIWidget that's causing it. Editor calls it. Remove it.
Title: Re: Why is any scene with an NGUI UI marked as dirty when the scene is open?
Post by: schneidb on March 03, 2014, 11:22:25 PM
Sorry for the lack of response.  I hadn't marked the thread to notify me so I didn't realize you responded.  Thanks, btw.  The changes in 3.5.2 have helped quite a bit.