예제 #1
0
 public override void OnInspectorGUI()
 {
     if (PositionConstraintEditor.s_Style == null)
     {
         PositionConstraintEditor.s_Style = new PositionConstraintEditor.Styles();
     }
     base.serializedObject.Update();
     base.ShowConstraintEditor <PositionConstraint>(PositionConstraintEditor.s_Style);
     base.serializedObject.ApplyModifiedProperties();
 }
예제 #2
0
 public void OnEnable()
 {
     if (PositionConstraintEditor.s_Style == null)
     {
         PositionConstraintEditor.s_Style = new PositionConstraintEditor.Styles();
     }
     this.m_TranslationAtRest = base.serializedObject.FindProperty("m_TranslationAtRest");
     this.m_TranslationOffset = base.serializedObject.FindProperty("m_TranslationOffset");
     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(PositionConstraintEditor.s_Style);
 }