Eonirr

Untitled

Nov 28th, 2025
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. using UnityEditor;
  2. using UnityEngine;
  3.  
  4. [CustomEditor(typeof(SkillSO))]
  5. public class SkillSoEditor : Editor
  6. {
  7. public override void OnInspectorGUI()
  8. {
  9. SkillSO skillSo = (SkillSO)target;
  10.  
  11. DrawDefaultInspector();
  12.  
  13. if (GUILayout.Button("SET BUFF NAME"))
  14. {
  15. skillSo.AutoFillBuffValue();
  16. }
  17.  
  18. if (GUI.changed)
  19. {
  20. EditorUtility.SetDirty(skillSo);
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment