mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2026-01-08 09:25:36 +07:00
32 lines
701 B
C#
32 lines
701 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
namespace FlashTools.Internal {
|
|
[CustomEditor(typeof(SwfManager))]
|
|
public class SwfManagerEditor : Editor {
|
|
SwfManager _manager = null;
|
|
|
|
void DrawAnimationCount() {
|
|
SwfEditorUtils.DoWithEnabledGUI(false, () => {
|
|
EditorGUILayout.IntField(
|
|
"Animation count",
|
|
_manager.AllAnimationCount);
|
|
});
|
|
}
|
|
|
|
// ---------------------------------------------------------------------
|
|
//
|
|
// Messages
|
|
//
|
|
// ---------------------------------------------------------------------
|
|
|
|
void OnEnable() {
|
|
_manager = target as SwfManager;
|
|
}
|
|
|
|
public override void OnInspectorGUI() {
|
|
DrawDefaultInspector();
|
|
DrawAnimationCount();
|
|
}
|
|
}
|
|
} |