Hi, using unity 4.5.2 and 2d Toolkit 2.4.0 :
When I create a
tk2d Sprite, and add a
Collider 2d (changing the physics engine in the settings of the sprite collection), if I
resize the sprite (either using theSprite Controls in the scene, or changing the scale of the tk2dSprite script in the inspector), there are multiple
error logs (repeating 999+) that appear in the console. These logs are :
*****************************
MissingReferenceException: The object of type 'BoxCollider2D' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEditor.Editor.IsEnabled ()
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean forceDirty, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect, Boolean eyeDropperDirty)
UnityEditor.InspectorWindow.DrawEditors (UnityEditor.Editor[] editors)
UnityEditor.InspectorWindow.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
*****************************
And
The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
UnityEditor.MaterialEditor:OnEnable()
**********
And
The serializedObject should not be used inside OnSceneGUI or OnPreviewGUI. Use the target property directly instead.
UnityEditor.BoxCollider2DEditor:OnEnable()
Do you have the same problem too?
I will make a video to illustrate my problem.
If you have any advice to help
Sincerely,
Jery