> 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/integrations/game-creator-2.md).

# Game Creator 2

This integration connects the building system with [Game Creator 2](https://assetstore.unity.com/packages/tools/utilities/inventory-2-game-creator-2-208668).\
Control building actions through visual scripting instructions without code.

***

### Example Scene

Here's a short video showing the building system in action with [Game Creator 2](https://assetstore.unity.com/packages/tools/utilities/inventory-2-game-creator-2-208668).\
The demo scene shown in the video below is ready to play and can be found in the integration folder.

{% embed url="<https://www.youtube.com/watch?v=FOUTyy027Js>" %}

***

### How It Works

The integration adds custom Instructions under **Easy Build System** in [Game Creator 2](https://assetstore.unity.com/packages/tools/utilities/inventory-2-game-creator-2-208668) browser.\
These instructions call methods from the building system components.\
Control the entire building system from Triggers, Actions, and Conditions without code.

***

### Requirements

* [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) (v2.18.59+) by Catsoft Works

{% hint style="warning" %}
The demo scene included with the integration uses the Built-in Render Pipeline.\
If your project uses URP or HDRP, materials must be converted to match the pipeline.
{% endhint %}

{% embed url="<https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069>" %}

***

### Installation

{% stepper %}
{% step %}

### Install Game Creator 2 Integration

Make sure **Easy Build System** and [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) are both imported in your project.

Open the Hub at: \
`Tools > Mind Code Interactive > Easy Build System > Hub > Integrations`.

<figure><img src="/files/CKdZYLuOCQ1uczx2vTWj" alt="" width="563"><figcaption></figcaption></figure>

Search for the [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) integration and click **Install Integration**.\
The integration will be imported and the project will recompile. Wait for it to finish.
{% endstep %}

{% step %}

### Install Game Creator 2 "Examples" Package

Then open the **Game Creator Install** window from the menu:\
`Game Creator > Install...`

<figure><img src="/files/DapUFAkmDQscXH0Vfsxt" alt="" width="563"><figcaption></figcaption></figure>

Then install the `Examples` package from [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069).\
The integration's demo scene is built on top of it.

<figure><img src="/files/k4HpcOPct7CRjOlGIvC0" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Demo Scene

Open the demo scene and try it. It's located in:\
`Mind Code Interactive/Easy Build System/Packages/Integrations/GC2`

<figure><img src="/files/XVFuFAro4gkT5Qu7dZja" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

### Using Instructions

If you're new to [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) visual scripting, the core workflow is:

1. Add an **Actions** or **Trigger** component to a GameObject (e.g., On Input Down, On Start, etc).
2. The Trigger contains an Actions list where you add Instructions.
3. Browse the instruction list and check under **Easy Build System** for all building instructions.

<figure><img src="/files/OM3Ba5VZDbwcjSm4KDiz" alt="" width="546"><figcaption></figcaption></figure>

Click on the component to open the instruction browser and find the action you want to trigger.

<figure><img src="/files/ad1IMbKn78WzXiXpd0G4" alt="" width="482"><figcaption></figcaption></figure>

For example, to enter placement mode when the player presses a key:

1. Add a Trigger set to **On Input Down** (e.g., key B).
2. Add the instruction **Select Building Part** with the PrefabId of the part you want.
3. Add the instruction **Change Building Mode** set to `Placement`.

To save buildings when clicking a UI button:

1. Add a Trigger set to **On Click** on your save button.
2. Add the instruction **Save Buildings**.

You can chain multiple instructions in a single action to create building workflows without coding.

***

### Available Instructions

**Change Building Mode:** Switches the active mode.

**Select Building Part (by Reference):** Selects a part using its PrefabId.

**Select Building Part (by Index):** Selects a part using its registry index.

**Validate Action:** Confirms the current building action.

**Cancel Action:** Cancels the current building action.

**Rotate Preview:** Rotates the preview in the specified direction.

**Place Building Part:** Instantiates a part at a position with rotation and scale.

**Destroy Building Part (by Reference):** Removes a part using a GameObject.

**Destroy Building Part (by ID):** Removes a part using its UniqueId.

**Destroy All Placed Parts:** Clears all runtime-placed parts.

**Adjust Building Part:** Moves a part to a new position and rotation.

**Upgrade Building Part:** Switches a part to a different variant.

**Get Part Count:** Returns the total number of registered parts.

**Is Placement / Destruction / Adjustment Mode:** Returns a boolean for conditional branching.

**Save / Load / Delete Save / Has Save Data:** Controls the save system.

**Open / Close / Toggle Radial Menu:** Controls the Radial Menu.

**Open / Close / Toggle Catalog Menu:** Controls the Catalog Menu.


---

# 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/integrations/game-creator-2.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.
