예제 #1
0
 /// <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();
 }
예제 #2
0
 /// <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();
     }
 }