Files
BlackHole.Unity/Assets/Editor/BlackHoleRendererEditor.cs
2025-05-13 03:12:25 +03:00

23 lines
500 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(BlackHoleRenderer))]
public class BlackHoleRendererEditor : Editor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
if (GUILayout.Button("Recalc"))
{
(target as BlackHoleRenderer).RecalcState();
}
if (GUILayout.Button("Trace")) {
(target as BlackHoleRenderer).Trace();
}
}
}