void OnGUI() { if (TK2DUnpacker.CollectionDataType == null) { EditorGUILayout.LabelField("There is no tk2dSpriteAnmation Type found"); return; } else { animation = EditorGUILayout.ObjectField("Animation Data", animation, TK2DUnpacker.SpriteAnimationType, true); if (GUILayout.Button("Unpack")) { Close(); UnboundCoroutine.Start(TK2DUnpacker.DecomposeTK2DAnimation(animation)); } } }
void OnGUI() { if (TK2DUnpacker.CollectionDataType == null) { EditorGUILayout.LabelField("There is no tk2dSpriteCollectionData Type found"); return; } else { collection = EditorGUILayout.ObjectField("Collection Data", collection, TK2DUnpacker.CollectionDataType, true); if (GUILayout.Button("Unpack")) { Close(); TK2DUnpacker.UnpackToSprite(collection); } } }