*
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using System.Collections;
|
||||
|
||||
[CustomEditor(typeof(MotorPlot))]
|
||||
public class MotorPlotEditor : 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 54857a5de4ef8e6429d006e8fdb1f801
|
||||
timeCreated: 1454962950
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user