示例#1
0
        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);
        }
示例#2
0
        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");
        }