> 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-definition.md).

# Random Assembly Definition

This is the main Data asset you will need, it's pretty simple as it has only three entries;

* The PCG Data asset entry
* The Dictionary of variants you want to apply on the PCG Data Asset, where the keys are the target tag(s).
* The static mesh spawner settings node (which can be overridden per variant).

<figure><img src="https://3339851461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuEJQQamuWymLVauXWDL%2Fuploads%2FZvxGHeX9KTVuoPAqJJBc%2Fimage.png?alt=media&amp;token=c0a42b25-c4ba-48d4-8b3c-ca005c84276f" alt=""><figcaption><p>Variants and their target tag(s).</p></figcaption></figure>

***

You can create a new Random Assembly definition by using the "Create Assembly Definition":

{% tabs %}
{% tab title="BP Random Assembly actor" %}
From the button on the BP Random Assembly actor:

<figure><img src="https://3339851461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuEJQQamuWymLVauXWDL%2Fuploads%2FQYB3wWiau6dq37a3m5JC%2Fimage.png?alt=media&amp;token=3bd763b5-3586-43b6-8bbf-49002920700e" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="From Content Browser" %}
Alternatively you can create the data asset directly from the content browser by selecting Miscellaneous -> Data Asset

<figure><img src="https://3339851461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuEJQQamuWymLVauXWDL%2Fuploads%2FJmbhOu41N8ZAnoQWUn5x%2Fimage.png?alt=media&amp;token=5bd4ea2b-4280-4d77-9da4-11bf2f225004" alt=""><figcaption></figcaption></figure>

And pick the BPDA\_RandomAssemblyDefinition Class:

<figure><img src="https://3339851461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuEJQQamuWymLVauXWDL%2Fuploads%2FoCJiq5srWpvope1qmB0M%2Fimage.png?alt=media&amp;token=98757e72-9185-4ed7-a55a-4d03d9667b81" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

***
