I'm using 3.0.6f6, and switching the UISlicedSprite on a load of buttons that were created with the SciFi Atlas to use my own imagery from my own Atlas.
I can change about 4 or 5 at a time before things start going wrong.
Upon changing the Atlas in the inspector, the inspector changes to be almost blanked out - just a small rectangle at the top left.
This error pops up in the console (4 times every time I return to Unity):
NullReferenceException: Object reference not set to an instance of an object
NGUIEditorTools.DrawSprite (UnityEngine.Texture2D tex, Rect drawRect, .UISpriteData sprite, Color color, UnityEngine.Material mat) (at Assets/NGUI/Scripts/Editor/NGUIEditorTools.cs:705)
If I select another thing in the Hierarchy I get these errors:
The serializedObject should not be used inside OnSceneGUI or OnPreviewGUI. Use the target property directly instead.
UnityEditor.GameObjectInspector:OnEnable()
The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
UnityEditor.GameObjectInspector:OnEnable()
If I press Play and Stop, everything sorts itself out and I can continue changing the UISprite.
I'm on a Mac, and these are sprites that had been added with earlier versions of NGUI (3.0.x) if that makes any difference.
After a Play and Stop restart I can do 4 or 5 as I say but then the next one starts going mad.
This is rather annoying.