> For the complete documentation index, see [llms.txt](https://mindcodeinteractive.gitbook.io/easy-build-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mindcodeinteractive.gitbook.io/easy-build-system/reference/building-collections.md).

# Building Collections

Stores a list of [Building Part](/easy-build-system/reference/building-part.md) references into a named collection.\
Simplifies [Building Part](/easy-build-system/reference/building-part.md) reference selection and filtering in the inspector.

***

### How Collections Work

A [Building Collection](/easy-build-system/reference/building-collections.md) is a ScriptableObject that holds an array of [Building Part](/easy-build-system/reference/building-part.md) prefab IDs.\
Instead of adding parts one by one to the Building Input, you can assign a full collection at once.\
Collections can represent themed kits, unlock tiers, or any logical grouping of parts.

***

### Creating a Collection

1. Go to `Tools > Mind Code Interactive > Easy Build System > Components > Scriptable Objects > Create Building Collection`
2. A new [Building Collection](/easy-build-system/reference/building-collections.md) asset is created in your project.
3. Name it and add part references in the inspector.

***

### Using a Collection

Open the [Building Input](/easy-build-system/reference/building-controller/building-input.md) component on your player.

Under **Custom Part References**, select your collection from the dropdown and click:

**Replace With Selected**: Clears the current list and fills it with the collection's parts.

**Append From Selected**: Adds the collection's parts to the existing list without duplicates.

***

### Scripting Examples

Load a collection and read its parts:

```csharp
BuildingCollection collection = Resources.Load<BuildingCollection>("MyCollection");
string[] partIds = collection.PartReferences;
```

Create a collection at runtime:

```csharp
BuildingCollection collection = ScriptableObject.CreateInstance<BuildingCollection>();
collection.Name = "Runtime Kit";
```


---

# 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://mindcodeinteractive.gitbook.io/easy-build-system/reference/building-collections.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.
