public override void OnInspectorGUI() { serializedObject.UpdateIfDirtyOrScript(); EditorGUILayout.PropertyField(projection, new GUIContent("Projection Type", TEXT_PROJECTION)); if (projection.enumValueIndex != (int)Transform2DGestureBase.ProjectionType.Camera) { GUIElements.CompactVector3(new GUIContent("Projection Normal", TEXT_PROJECTIONNORMAL), projectionNormal); } serializedObject.ApplyModifiedProperties(); base.OnInspectorGUI(); }