2D Toolkit Forum
2D Toolkit => Support => Topic started by: mr_malee on April 03, 2014, 02:54:14 am
-
Hi, when selecting a sprite in the editor that is using a dynamic material (or from what I can tell) and hitting play causes the Editor to stop responding and generates an error:
(http://s12.postimg.org/o3qvhrxkt/error.png)
NullReferenceException: (null)
UnityEditor.SerializedObject..ctor (UnityEngine.Object[] objs) (at C:/BuildAgent/work/d3d49558e4d408f4/artifacts/EditorGenerated/SerializedPropertyBindings.cs:69)
UnityEditor.Editor.GetSerializedObjectInternal () (at C:/BuildAgent/work/d3d49558e4d408f4/artifacts/EditorGenerated/EditorBindings.cs:117)
UnityEditor.Editor.get_serializedObject () (at C:/BuildAgent/work/d3d49558e4d408f4/artifacts/EditorGenerated/EditorBindings.cs:110)
UnityEditor.MaterialEditor.OnEnable () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/Inspector/MaterialEditor.cs:1069)
the sprite collection has 2 platforms (1x and 2x) and also contains 2 materials
-
Hi,
That is a Unity editor bug, but it shouldn't cause any issues - I can reproduce this easy enough, and the editor seems to work fine? Can you give me a repro case where the editor stops responding, please - I should be able to see if its possible to work around the issue then.