> For the complete documentation index, see [llms.txt](https://docs.sandbox.game/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sandbox.game/en/creator/game-maker/docs/behaviours/modifiers/replace-asset.md).

# Replace Asset

{% hint style="success" %}
**COPY/PASTE PARAMETERS**

New in GM 0.11! Right click on a behaviour or component to copy. Then open an object, add the same behaviour or component, and right click it to paste identical parameter settings.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/83PS3g9zpWmq73xzlwFn/blobs/PnR5e21j8UrtMhLT2PT6/Replace2.gif" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
[Build Singleplayer & Multiplayer Logic](/en/creator/game-maker/docs/build-singleplayer-and-multiplayer-logic.md) - about <mark style="color:green;">**\[SP]**</mark> or <mark style="color:yellow;">**\[MP]**</mark> behaviours or components
{% endhint %}

### ![](https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2F8pfJ8AyJCjcqKB8pMliL%2Fimage.png?alt=media\&token=c1292d0a-1c0e-4420-b21b-9c48cc1ff28e) Replace Asset \[MP] <a href="#common-uses" id="common-uses"></a>

* Replace an asset with another after a defined delay or receiving a message.

### Common Uses <a href="#common-uses" id="common-uses"></a>

* Replacing an Object with another to show change: damage, repair, growth, seasons, etc.
* Reuse of 3D space by changing scenery and logic

### Communications <a href="#communications" id="communications"></a>

<table data-header-hidden><thead><tr><th width="320"></th><th></th></tr></thead><tbody><tr><td><strong>Inputs:</strong><br>One or more Messages trigger</td><td><strong>Outputs:</strong><br>The object is removed from the Experience and the specified asset is placed at its location (determined by the location of its pivot point)</td></tr></tbody></table>

<img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2F2dUJfPHSQMFV0OrnihEL%2Ffile.excalidraw.svg?alt=media&amp;token=0d38d7fa-2e48-4e3b-841a-552ab334784f" alt="" class="gitbook-drawing">

### Parameters <a href="#parameters" id="parameters"></a>

| ​![](https://content.gitbook.com/content/83PS3g9zpWmq73xzlwFn/blobs/nqEMMWFH3Xyn1NZ7dWKI/image.png)​ | <p><strong>Use Preset</strong> - Determines whether the behaviour should spawn a preset or an asset from your library. <br><br><em><strong>Preset -</strong></em> If 'Use Preset' is set to True, select what to spawn from your list of custom presets. <br><em><strong>Tags</strong></em> - Add or remove tags that will be added to the spawned preset/asset.</p> |
| ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ​![](https://content.gitbook.com/content/83PS3g9zpWmq73xzlwFn/blobs/MqGtwDBYNwXQkDUZta1o/image.png)​ | **Message Required** - Determines which message(s) will be used to activate the behaviour. Add one or more messages or remove unwanted ones.                                                                                                                                                                                                                         |


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sandbox.game/en/creator/game-maker/docs/behaviours/modifiers/replace-asset.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
