GigActionDataFillerEditor.cs 419 B

1234567891011121314151617181920
  1. #if UNITY_EDITOR
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEditor;
  6. [CustomEditor(typeof(GigActionDataFiller))]
  7. public class GigActionDataFillerEditor : Editor
  8. {
  9. public override void OnInspectorGUI()
  10. {
  11. base.OnInspectorGUI();
  12. if(GUILayout.Button("DO STUFF"))
  13. {
  14. GigActionDataFiller t = target as GigActionDataFiller;
  15. t.CopyFormTextToData();
  16. }
  17. }
  18. }
  19. #endif