123456789101112131415161718192021222324 |
- using UnityEditor;
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- [CustomEditor(typeof(Test))]
- public class EdTest : Editor
- {
- public override void OnInspectorGUI()
- {
- base.OnInspectorGUI();
- if (GUILayout.Button("Show"))
- {
- EditorUtility.DisplayProgressBar("Test", "Info", 0.5f);
- }
- if (GUILayout.Button("Test"))
- {
- EditorUtility.ClearProgressBar();
- }
- }
- }
|