public override sealed void OnInspectorGUI()
 {
     foreach (var targ in targets)
     {
         var anchoredJoint = (AnchoredJoint2DExt)targ;
         anchoredJoint.SetConnectedAnchorEditor();
     }
     Phys2DEditorHelpers.DrawDefaultInspector(serializedObject);
 }
        public override sealed void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            foreach (var targ in targets)
            {
                ((DistanceJointBase2DExt)targ).SetDistanceEditor();
            }

            Phys2DEditorHelpers.DrawDefaultInspector(serializedObject, "m_BreakTorque");
        }
示例#3
0
 public override sealed void OnInspectorGUI()
 {
     Phys2DEditorHelpers.DrawDefaultInspector(serializedObject, "m_BreakForce");
     foreach (var targ in targets)
     {
         var    angleJoint = (AngleJoint2DExt)targ;
         string error;
         if (!angleJoint.ValidateAngleJoint(out error))
         {
             EditorGUILayout.HelpBox(error, MessageType.Error);
         }
     }
 }
示例#4
0
 public override sealed void OnInspectorGUI()
 {
     Phys2DEditorHelpers.DrawDefaultInspector(serializedObject, "m_ConnectedRigidBody");
     foreach (var targ in targets)
     {
         var    gearJoint = (GearJoint2DExt)targ;
         string error;
         if (!gearJoint.ValidateJoints(out error))
         {
             EditorGUILayout.HelpBox(error, MessageType.Error);
         }
     }
 }
示例#5
0
 public override sealed void OnInspectorGUI()
 {
     Phys2DEditorHelpers.DrawDefaultInspector(serializedObject);
 }