Author Topic: Why is any scene with an NGUI UI marked as dirty when the scene is open?  (Read 3842 times)

schneidb

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 2
  • Posts: 24
    • View Profile
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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Why is any scene with an NGUI UI marked as dirty when the scene is open?
« Reply #1 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Why is any scene with an NGUI UI marked as dirty when the scene is open?
« Reply #2 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.

schneidb

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 2
  • Posts: 24
    • View Profile
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.