> For the complete documentation index, see [llms.txt](https://cgtoolbox.gitbook.io/cgtoolbox-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cgtoolbox.gitbook.io/cgtoolbox-docs/pcg-random-assemblies/random-assembly-widget.md).

# Random assembly widget

***

An Utility widget is available to gather more informations on variants, it's accessible using the ![](/files/BfikK19x1rOQbzM5nJ79) button on a [BP Random Assembly](/cgtoolbox-docs/pcg-random-assemblies/bp-random-assembly.md) actor:

<figure><img src="/files/bD7IU83khAZf8CVKe52E" alt=""><figcaption></figcaption></figure>

***

If no [random assembly definition](/cgtoolbox-docs/pcg-random-assemblies/random-assembly-definition.md) is found on the actor, the widget will display an error message and a button to create a new one:

<figure><img src="/files/Gb2oKfMi1B7eCzMI05Zy" alt=""><figcaption><p>No Random Assembly Definition set up.</p></figcaption></figure>

<figure><img src="/files/aXJqAMnIe0jKPVC1yVbi" alt=""><figcaption></figcaption></figure>

If a random assembly definition if found but with no [PCG Data Asset](/cgtoolbox-docs/pcg-random-assemblies/pcg-data-asset.md) set up, a warning will be displayed:

<figure><img src="/files/OopaEreFDMvrLRprJRfL" alt=""><figcaption></figcaption></figure>

***

The widget show all the variants applied to the current random assembly with some details:

<figure><img src="/files/sLknM4D4Rnql6siZ3WeZ" alt=""><figcaption></figcaption></figure>

***

#### <mark style="color:purple;">Button shortcuts:</mark>

You can create a new variant with the ![](/files/vQxZi7Xodj1zKRkfCpGF) button. A popup will be displayed with the tags available:

<figure><img src="/files/FNhdhCzZ6vP8pL93kYUN" alt=""><figcaption></figcaption></figure>

If no tags are available, an error message will be displayed for few seconds: <img src="/files/bILSYGuy3kCR8E81v17l" alt="" data-size="original">

***

You have a shortcut available with this button: ![](/files/5YcAFUTXN5fMwAmeEWy1) to go to the Level Instance asset used by the random assembly.

Beside, If you change the content of the linked level instance (Editing / Adding / Removing actors, change tags, ...), you will need to update the PCG Data Asset accordingly, this can be done with this button: ![](/files/jJr2MCI3YBeB6TGcwsmR)

***

#### <mark style="color:purple;">Debug view:</mark>

The "Show tags" checkbox display object's bounds (with the debug color) and display also the actor tags used by the variants:

<figure><img src="/files/PypoPZLl0SISojLFSIJ8" alt=""><figcaption></figcaption></figure>

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cgtoolbox.gitbook.io/cgtoolbox-docs/pcg-random-assemblies/random-assembly-widget.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
