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"); }
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); } } }
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); } } }
public override sealed void OnInspectorGUI() { Phys2DEditorHelpers.DrawDefaultInspector(serializedObject); }