Hello Guest

Author Topic: [Bug] Pressing Play on selected sprite with dynamic material  (Read 3939 times)

mr_malee

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
[Bug] Pressing Play on selected sprite with dynamic material
« 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:



Code: [Select]
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
« Last Edit: April 03, 2014, 02:56:51 am by mr_malee »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: [Bug] Pressing Play on selected sprite with dynamic material
« Reply #1 on: April 06, 2014, 12:10:52 pm »
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.