public override void OnInspectorGUI() { if (RotationConstraintEditor.s_Style == null) { RotationConstraintEditor.s_Style = new RotationConstraintEditor.Styles(); } base.serializedObject.Update(); base.ShowConstraintEditor <RotationConstraint>(RotationConstraintEditor.s_Style); base.serializedObject.ApplyModifiedProperties(); }
public void OnEnable() { if (RotationConstraintEditor.s_Style == null) { RotationConstraintEditor.s_Style = new RotationConstraintEditor.Styles(); } this.m_RotationAtRest = base.serializedObject.FindProperty("m_RotationAtRest"); this.m_RotationOffset = base.serializedObject.FindProperty("m_RotationOffset"); this.m_Weight = base.serializedObject.FindProperty("m_Weight"); this.m_IsContraintActive = base.serializedObject.FindProperty("m_IsContraintActive"); this.m_IsLocked = base.serializedObject.FindProperty("m_IsLocked"); this.m_Sources = base.serializedObject.FindProperty("m_Sources"); base.OnEnable(RotationConstraintEditor.s_Style); }