> For the complete documentation index, see [llms.txt](https://mindcodeinteractive.gitbook.io/easy-build-system-old/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-old/integrations/game-creator-2.md).

# Game Creator 2

## About Integration

This integration allows you to use all the features of **Easy Build System** and call some methods of system through [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) by using the Actions, Triggers, and Conditions system, without having to write any code. You can find the list of instructions to call below this page.

The installation guide below will help you install **Easy Build System** so you can use it with the different default shortcuts to switch between different building modes. If you're looking to set limits on construction, you'll need to use the inventory module right [here](/easy-build-system-old/integrations/game-creator-2/game-creator-2-inventory.md).

{% hint style="warning" %}
If you encounter errors with integration, it is possible that a new update changed some things in the code and therefore is no longer compatible with the system integration.\
If this is the case, you can contact support to receive a hotfix quickly.
{% endhint %}

***

## Installation Guide

1️⃣ **Prerequisites**

* Import the latest version of **Easy Build System** from built-in **Package Manager**.
* Import the latest version of [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) from built-in **Package Manager**.

2️⃣ **Install "Examples" package**

* Install the "Examples" package of [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) from the menu items : <mark style="color:yellow;">"Game Creator > Install..."</mark>

<figure><img src="/files/x9vHqUpj344NCZyRcV7c" alt=""><figcaption><p>Expand the image to large view by clicking on it.</p></figcaption></figure>

3️⃣ **Open an existing scene**

{% hint style="info" %}
This step is dedicated to this installation guide, but if you already have an existing scene with [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) setup on it, you can skip this step and go to the next one.
{% endhint %}

* Open the "1\_PlayerMovement" example scene of the [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069).

<figure><img src="/files/V08typjiWExNbnDVKjlz" alt=""><figcaption><p>Expand the image to large view by clicking on it.</p></figcaption></figure>

4️⃣ **Install the Game Creator 2 integration**

* Open the **Packager Importer** from the tools menu items : \ <mark style="color:yellow;">"Tools > Easy Build System > Package Importer"</mark>
* Go to "Integration Packages" section and install integration of [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069).
* Make sure to import all the content by clicking on the "All" and "Import" button.

<figure><img src="/files/4LIR55Aizz463sfVSTpg" alt="" width="563"><figcaption><p>Expand the image to large view by clicking on it.</p></figcaption></figure>

5️⃣ **Setup Easy Build System**

* Use the "Scene Setup" feature to install the system in your scene from the tools menu items:\ <mark style="color:yellow;">"Tools > Easy Build System > Scene Setup..."</mark>

<figure><img src="/files/4Z0Ej3LuMpI9Km5bB9Et" alt="" width="563"><figcaption><p>Expand the image to large view by clicking on it.</p></figcaption></figure>

6️⃣ **Configure Easy Build System**

* Select your "Main Camera" from your scene and set the "Raycast Type" to "Third Person View".
* You can then, set your "Player" transform into the "Raycast Transform From" field.
* You can now play your scene to see the system in action with [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069).

<figure><img src="/files/tJNGARgetDYh92SUE5ZW" alt="" width="563"><figcaption><p>Expand the image to large view by clicking on it.</p></figcaption></figure>

***

### Actions, Triggers, Conditions

Integration includes Instructions that you can use via the Actions / Triggers & Conditions features.

{% embed url="<https://www.youtube.com/watch?v=uM5a8tcDTf8>" %}
You can watch the video in fullscreen and set the quality to maximum.
{% endembed %}

{% embed url="<https://www.youtube.com/watch?v=RewoV3ISG4c>" %}
You can watch the video in fullscreen and set the quality to maximum.
{% endembed %}

{% embed url="<https://www.youtube.com/watch?v=8yfIKN0VX6c>" %}
You can watch the video in fullscreen and set the quality to maximum.
{% endembed %}

Here is the list of instructions possible to call with [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) :

* **Place Building** Instantiate a [Building Part](/easy-build-system-old/components/building-part.md) in the scene without passing by the [Builder Placer](/easy-build-system-old/components/building-placer.md).
* **Select Building Part** Allows selection of a [Building Part](/easy-build-system-old/components/building-part.md) from the [Building Manager](/easy-build-system-old/components/building-manager.md).
* **Clear Building Part** Allows to cancel the current preview.
* **Rotate Building Part** Allows to rotate the current preview.
* **Change Building Mode** Allows selection of a building mode (place, destroy, edit).
* **Load Building Parts** Allows loading of all the last saved [Building Parts](/easy-build-system-old/components/building-part.md).
* **Save Building Parts** Allows saving of all the [Building Parts](/easy-build-system-old/components/building-part.md) present in the scene.

***

### Practical Examples

Here's an simple example with the "Conditions" component of [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069).

This condition allows selecting a specific [Building Part](/easy-build-system-old/components/building-part.md) when the "Space" key is pressed, so you can then enter placement mode to able place it.

<figure><img src="/files/3aE5wfxPHLMOIefLMaQz" alt="" width="563"><figcaption><p>Expand the image to large view by clicking on it.</p></figcaption></figure>

It's a example, but you can then develop more in-depth to create your own conditions without having to write a single line of code.
