public static void OnObjectListsGUI(CustomTargetTool context) { if (context == null) { return; } RigidBodyTool.OnRigidBodyListGUI(context.CollectComponentsInChildred <RigidBody>().ToArray(), context); GUI.Separator(); RigidBodyTool.OnConstraintListGUI(context.CollectComponentsInChildred <Constraint>().ToArray(), context); GUI.Separator(); RigidBodyTool.OnShapeListGUI(context.CollectComponentsInChildred <Shape>().ToArray(), context); }
public static void OnObjectListsGUI(CustomTargetTool context) { if (context == null) { return; } InspectorGUI.ToolArrayGUI(context, context.CollectComponentsInChildred <RigidBody>().ToArray(), "Rigid Bodies"); InspectorGUI.ToolArrayGUI(context, context.CollectComponentsInChildred <Constraint>().ToArray(), "Constraints"); InspectorGUI.ToolArrayGUI(context, context.CollectComponentsInChildred <Shape>().ToArray(), "Shapes"); }