Hello,
I would like to know if it is possible to add tk2dSprite component to a GameObject, let's say an empty GameObject?
The tk2dSprite adds others linked components Mesh Filter and Mesh Renderer to the empty GameObject, but I have a NullException while I try to display the content of the Tk 2d Sprite component in the inspector:
NullReferenceException: Object reference not set to an instance of an object
tk2dSpriteGuiUtility.SpriteCollectionPopup (System.String label, .tk2dSpriteCollectionData currentValue, Boolean allowEdit, Int32 spriteId) (at Assets/TK2DROOT/tk2d/Editor/tk2dSpriteGuiUtility.cs:197)
tk2dSpriteEditor.DrawSpriteEditorGUI (.tk2dBaseSprite sprite) (at Assets/TK2DROOT/tk2d/Editor/Sprites/tk2dSpriteEditor.cs:22)
tk2dSpriteEditor.OnInspectorGUI () (at Assets/TK2DROOT/tk2d/Editor/Sprites/tk2dSpriteEditor.cs:11)
UnityEditor.InspectorWindow.DrawEditors (Boolean isRepaintEvent, UnityEditor.Editor[] editors, Boolean eyeDropperDirty) (at C:/BuildAgent/work/300357e52574df36/Editor/Mono/Inspector/InspectorWindow.cs:888)
UnityEditor.InspectorWindow.OnGUI () (at C:/BuildAgent/work/300357e52574df36/Editor/Mono/Inspector/InspectorWindow.cs:243)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
Thanks for your help.
Best regards.