> 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-inventory.md).

# Game Creator 2 - Inventory

This integration connects the building system with [Game Creator 2 Inventory](https://assetstore.unity.com/packages/tools/utilities/inventory-2-game-creator-2-208668).\
Require items for placement, consume them on build, and refund on destruction.

***

### Example Scene

Here's a short video showing the building system in action with [Game Creator 2 Inventory](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=Gnu1CCVb5Ms>" %}

***

### How It Works

The integration adds components and instructions linking [Building Parts](/easy-build-system/reference/building-part.md) to GC2’s Inventory system. Define item requirements on parts and check the player’s bag before placement.\
Consume items on build and refund them on destruction.

The integration supports two building workflows:

#### Building with Pickable Items (Direct Placement)

The player picks up bag items scattered in the world. Each bag contains a specific Building Part. The player drags the item to the GC2 hotbar and uses it to enter placement mode directly. One item is consumed per placement. This is the simpler, item-based approach.

#### Building with Resources (Hammer + Radial Menu)

The player picks up a hammer item. Using the hammer opens the Radial Menu where each slot requires specific resources (wood planks, screws, etc.). If the player has enough resources in their inventory, they can select a part and enter placement mode. Resources are consumed on placement. This is the survival crafting approach.

Both workflows can coexist in the same project.

{% hint style="info" %}
This integration builds on the [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) integration and includes all its instructions as well.
{% endhint %}

***

### Requirements

* [Survival Upgradable](/easy-build-system/extensions/survival-upgradable.md) by Mind Code Interactive
* [Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) by Catsoft Works
* [Game Creator 2 Inventory](https://assetstore.unity.com/packages/tools/utilities/inventory-2-game-creator-2-208668) (v2.8.23+) 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 %}

***

### Installation

{% hint style="warning" %}
[Game Creator 2](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) must be installed before adding the [Game Creator 2 Inventory](https://assetstore.unity.com/packages/tools/utilities/inventory-2-game-creator-2-208668) integration.
{% endhint %}

{% 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/tSNNwc2f1KALN017PCQt" alt="" width="563"><figcaption></figcaption></figure>

Search for the [Game Creator 2 Inventory](https://assetstore.unity.com/packages/tools/utilities/inventory-2-game-creator-2-208668) 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 "Adventure" 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 `Adventure` package from [Game Creator 2 Inventory](https://assetstore.unity.com/packages/tools/utilities/inventory-2-game-creator-2-208668).\
The integration's demo scene is built on top of it.

<figure><img src="/files/2UGyAk2m8rZhqNNJv7vK" 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 Inventory`

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

***

### Creating Your Own Building Items

To create a new inventory item linked to a [Building Part](/easy-build-system/reference/building-part.md):

1. Create an Item asset in [Game Creator 2 Inventory](https://assetstore.unity.com/packages/tools/utilities/inventory-2-game-creator-2-208668).\
   See the [GC2 Inventory documentation](https://docs.gamecreator.io/inventory/items/) for details on item creation.
2. In the item’s **Usage** section, add `Select Building Item` and assign the [Building Part](/easy-build-system/reference/building-part.md).
3. Create a pickable prefab for the item so the player can find it in the world.

***

### Placeable Items

To place a [Building Part](/easy-build-system/reference/building-part.md) directly from the hotbar or inventory, select the item in GC2's Inventory.\
In the **Usage** section, add the `Select Building Item` instruction.\
Set the `Part Prefab Id` to the part you want to place.

Here's a screenshot showing this setup on the `Wood Foundation` item included in the demo scene.

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

When the player uses the item, the system enters placement mode with that part automatically.

***

### Requiring Items

To require resources via the Radial Menu, use `GC2BuildingSelectionAction` as the slot action.\
This is different from `BuildingSelectionAction` which selects parts without checking inventory.

On each slot, set the **Part Reference** and define the **Required Items** with their amounts.\
You can also configure **Refund Items** to return resources when the part is destroyed.

Here's a screenshot showing the setup on the Foundation slot in the demo scene's Radial Menu.

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

***

### Tool Item Setup

The Radial Menu can require a specific tool item to be equipped before opening.\
In the demo scene, the player must have a **Hammer** in their inventory to access the building menu.

On the `GC2RadialMenuIntegration` component attached to the Radial Menu prefab, to configure:

**Bag Target:** The player's Bag component.

**Requirements Text:** A UI Text element that displays missing requirements.

**Required Tool Item:** The GC2 Item that must be in the player's inventory to open the menu.\
Leave empty to allow opening without a tool.

**Tool Bag Target:** The Bag to check for the tool item.

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


---

# 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-inventory.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.
