# Group

The Group script is assigning a defined group to the component where the group is attached to.

<div align="left"><figure><img src="/files/ud7tBfDoNpRGSw6BJnOb" alt=""><figcaption></figcaption></figure></div>

The Group is named by a GroupName. For Prefabs you can also define a reference to another object which will create a Prefix for the group name. This is especially useful if you would like to generate reusable prefabs that are using the Group function.

The Group scritp is specially used by the [Kinematic](/components-and-scripts/motion/kinematic.md) script.

The [Selection Window](/basics/user-interface/selection-window.md) (available in Pro only) allows you to easily hide and show Groups.

\
© 2025 realvirtual GmbH [https://realvirtual.io](https://realvirtual.io/) - All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including printing, saving, photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.realvirtual.io/components-and-scripts/motion/group.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
