// DoLayout Axes private void DrawAxes() { TCKEditorHelper.LargeFoldout(axesLagProp, "Axes", () => { for (int i = 0; i < endAxisIndexToDraw; i++) { DrawAxisData(axisSPData[i]); } EditorGUILayout.Space(); using (TCKEditorLayout.Horizontal()) { GUILayout.Space(10f); GUI.enabled = AnyAxisEnabled(); bool axesLag = axesLagProp.boolValue; axesLag = EditorGUILayout.Toggle(axesLag, GUILayout.Width(15f)); axesLagProp.boolValue = axesLag; GUILayout.Label(axesLagProp.GetLabel(), GUILayout.Width(25f)); GUI.enabled &= axesLag; EditorGUILayout.PropertyField(axesLagSpeedProp, GUIContent.none); GUI.enabled = true; } }); }
// OnInspectorGUI public override void OnInspectorGUI() { serializedObject.Update(); eavIsOk = (enableProp.boolValue && activeProp.boolValue && visibleProp.boolValue); using (TCKEditorLayout.Vertical("box")) { TCKEditorHelper.LargeFoldout(enableProp, "Parameters", ShowParameters); PostParametersDraw(); } serializedObject.ApplyModifiedProperties(); PostAppliedModifiedProperties(); }