/// <summary> /// Raises the inspector GUI event. /// </summary> public override void OnInspectorGUI() { if (this.target == null) { return; } if (m_JointType == JointType.Configurable) { if (EditorGUIX.BeginSceneGUIControlsArea()) { DisplaySceneGUIHandlePreferences(); } EditorGUIX.EndSceneGUIControlsArea(); DisplayMultiJointMotionButton( s_MultiTranslationMotionPreference, s_TranslationMotionLabel, JointX.SetAllTranslationMotion ); DisplayMultiJointMotionButton( s_MultiRotationMotionPreference, s_RotationMotionLabel, JointX.SetAllAngularMotion ); EditorGUILayout.Space(); } DisplayInspector(); }
/// <summary> /// Display the built-in inspector if it could be found. /// </summary> public override void OnInspectorGUI() { if (this.target == null) { return; } if (this.ImplementsSceneGUIOverlay || this.ImplementsSceneGUIHandles) { if (EditorGUIX.BeginSceneGUIControlsArea()) { DisplaySceneGUIHandlePreferences(); } EditorGUIX.EndSceneGUIControlsArea(); } if (m_BultinEditor == null) { EditorGUILayout.HelpBox("Unable to locate built-in editor to draw inspector.", MessageType.Error); DrawDefaultInspector(); } else { m_BultinEditor.OnInspectorGUI(); } }