ScriptableObject that helps us build and update animation clips from textures quickly
상속: UnityEngine.ScriptableObject
        /// <summary>
        /// Raises the inspector GU event.
        /// </summary>
        public override void OnInspectorGUI()
        {
            this.DrawDefaultInspector();

            if (GUILayout.Button("Generate Clips"))
            {
                AnimBuilder animBuilder = (AnimBuilder)target;
                animBuilder.GenerateClips();
            }

            this.clipName = EditorGUILayout.TextField("Clip Name", this.clipName);
            if (GUILayout.Button("Add Eight Dir Clips"))
            {
                AnimBuilder animBuilder = (AnimBuilder)target;
                animBuilder.AddEightBlendToClips(this.clipName);
            }

            // Enable this only for when you duplicate a builder and need to clear it... should rarely come up.
            this.allowErasing = EditorGUILayout.BeginToggleGroup("EnableEraseClips", this.allowErasing);
            if (GUILayout.Button("Erase clips"))
            {
                AnimBuilder animBuilder = (AnimBuilder)target;
                foreach (AnimBuilder.SpriteAnimClip clip in animBuilder.Clips)
                {
                    clip.SavedClip = null;
                }
            }

            EditorGUILayout.EndToggleGroup();
        }
            private static void CreateAnimBuilder()
            {
                AnimBuilder animBuilder = ScriptableObjectUtility.CreateAsset <AnimBuilder>();

                animBuilder.Initialize();

                AssetDatabase.SaveAssets();
            }