# 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 %}

### ![](/files/5VWjdudjRKJbY4GVEr4m) 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="/files/JsGmx00xXe5QfLQ6EE0F" 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: 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://docs.sandbox.game/en/creator/game-maker/docs/behaviours/modifiers/replace-asset.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.
