public override void OnInspectorGUI() { base.OnInspectorGUI(); LerpDemo lerper = (LerpDemo)target; if (GUILayout.Button("PLAY")) { lerper.PlayTweenAnim(); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); // draws normal editor part LerpDemo lerper = (LerpDemo)target; if (GUILayout.Button("Play")) { lerper.PlayTweenAnim(); } }