public static AddInspector ( SerializedProperty prop, bool editHierarchy, bool editWeights ) : void | ||
prop | SerializedProperty | |
editHierarchy | bool | |
editWeights | bool | |
리턴 | void |
protected override void AddInspector() { // Draw the inspector for IKSolverFABRIK IKSolverHeuristicInspector.AddInspector(solver, !Application.isPlaying, false); // Warning box if (!script.solver.IsValid(false)) { AddWarningBox(script.solver); } }
/// <summary> /// Draws the custom inspector for IKSolverAim /// </summary> public static void AddInspector(SerializedProperty prop, bool editHierarchy, SerializedContent[] content) { AddContent(content[content.Length - 4]); AddContent(content[content.Length - 3], true); EditorGUILayout.Space(); AddClampedFloat(content[content.Length - 2]); AddClampedInt(content[content.Length - 1], 0, 3); IKSolverHeuristicInspector.AddInspector(prop, editHierarchy, true, content); }
protected override void AddInspector() { // Draw the inspector for IKSolverFABRIK IKSolverHeuristicInspector.AddInspector(solver, !Application.isPlaying, false); // Warning box string message = string.Empty; if (!script.solver.IsValid(ref message)) { AddWarningBox(message); } }
/* * 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]); } } }
protected override void AddInspector() { // Draw the inspector for IKSolverFABRIK IKSolverHeuristicInspector.AddInspector(solver, !Application.isPlaying, false, content); }