Tanoda
ColliderInterpolatorEditor.cs
Go to the documentation of this file.
1using UnityEngine;
2using UnityEditor;
3
5{
6 [CustomEditor(typeof(ColliderInterpolator))]
7 public class ColliderInterpolatorEditor : Editor
8 {
9 public override void OnInspectorGUI()
10 {
11 DrawDefaultInspector();
12
13 var script = (ColliderInterpolator) target;
14 if (GUILayout.Button("Generate"))
15 {
16 script.Generate();
17 }
18 }
19 }
20}