Example #1
0
        protected override void AddInspector()
        {
            // Draw the inspector for IKSolverTrigonometric
            IKSolverLookAtInspector.AddInspector(solver, !Application.isPlaying, true);

            // Warning box
            if (!script.solver.IsValid(false))
            {
                AddWarningBox(script.solver);
            }
        }
Example #2
0
        protected override void AddInspector()
        {
            // Draw the inspector for IKSolverTrigonometric
            IKSolverLookAtInspector.AddInspector(solver, !Application.isPlaying, true);

            // Warning box
            string message = string.Empty;

            if (!script.solver.IsValid(ref message))
            {
                AddWarningBox(message);
            }
        }
Example #3
0
        /*
         * Draws the custom inspector for BipedIK.Solvers
         * */
        public static void AddInspector(SerializedProperty prop, SerializedProperty[] props)
        {
            EditorGUILayout.PropertyField(prop, false);

            if (prop.isExpanded)
            {
                for (int i = 0; i < props.Length; i++)
                {
                    BeginProperty(props[i]);
                    if (props[i].isExpanded)
                    {
                        if (i <= 3)
                        {
                            IKSolverLimbInspector.AddInspector(props[i], false, false);
                        }
                        else if (i == 4)
                        {
                            IKSolverHeuristicInspector.AddInspector(props[i], false, false);
                        }
                        else if (i == 5)
                        {
                            IKSolverAimInspector.AddInspector(props[i], false);
                        }
                        else if (i == 6)
                        {
                            IKSolverLookAtInspector.AddInspector(props[i], false, false);
                        }
                        else if (i == 7)
                        {
                            ConstraintsInspector.AddInspector(props[i]);
                        }
                    }
                    EndProperty(props[i]);
                }
            }
        }
Example #4
0
 protected override void AddInspector()
 {
     // Draw the inspector for IKSolverTrigonometric
     IKSolverLookAtInspector.AddInspector(solver, !Application.isPlaying, true, content);
 }