This commit is contained in:
2025-05-13 03:30:23 +03:00
parent 224cfc8cf6
commit 5c489bb6ee
554 changed files with 1114771 additions and 0 deletions
@@ -0,0 +1,23 @@
using UnityEngine;
using UnityEditor;
using System.Collections;
[CustomEditor(typeof(MotorPlot))]
public class MotorEditor : Editor {
public override void OnInspectorGUI() {
base.OnInspectorGUI();
if (GUILayout.Button("Update unbound plots")) {
(target as MotorPlot).DrawUnboundPlots();
}
if (GUILayout.Button("Update plots")) {
(target as MotorPlot).IntegratePlotsVisual();
}
if (GUILayout.Button("Optimize")) {
(target as MotorPlot).Optimize();
}
}
}