DecalEditor.cs 318 B

123456789101112131415
  1. using UnityEngine;
  2. using UnityEditor;
  3. namespace LuxURPEssentials
  4. {
  5. [CustomEditor(typeof(Decal))]
  6. public class DecalEditor : Editor {
  7. public override void OnInspectorGUI() {
  8. Decal script = (Decal)target;
  9. if (GUILayout.Button("Align")) {
  10. script.AlignDecal();
  11. }
  12. }
  13. }
  14. }