# Runtime gameobjects

## Overview

Runtime gameobjects are great way to store, categorize and identify groups of gameobjects during runtime.&#x20;

{% embed url="<https://youtu.be/P6-VktwCWrA>" %}

This feature uses 3 components:

* The Runtime GameObject Scriptable Asset
* The Add Runtime GameObject component
* The Get Runtime GameObject component

## Runtime GameObject Asset

This asset is in charge to store all the gameobjects that are set at runtime.

![](/files/-MaR3Dyb_WXUSqI1NdEx)

## Add Runtime Gameobjects

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

When this component is added to a gameobject, it will add to the given runtime set, that gameobject on Enable.

### Parameters

#### Collection

&#x20;Runtime Set to add the gameobject that has the component

## Get Runtime Gameobjects

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

When this component is added to a gameobject, it will find an item in a Runtime Object collection set and it will use Unity Events to connect the result to any other component.


---

# 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://malbersanimations.gitbook.io/animal-controller/scriptable-architecture/scriptables/runtime-gameobjects.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.
