Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started 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.
-
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.
-
Edit: On second thought... it might be the OnApplicationPause function in UIWidget that's causing it. Editor calls it. Remove it.
-
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.