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(ScriptComponent context, GUISkin skin) { if (context == null) { return; } RigidBodyTool.OnRigidBodyListGUI(context.GetComponentsInChildren <RigidBody>(), context, skin); GUI.Separator(); RigidBodyTool.OnConstraintListGUI(context.GetComponentsInChildren <Constraint>(), context, skin); GUI.Separator(); RigidBodyTool.OnShapeListGUI(context.GetComponentsInChildren <AGXUnity.Collide.Shape>(), context, skin); }