# Setup Guide

{% hint style="danger" %}
**LogicBlock** requires Game Creator 2 and can't work without it.
{% endhint %}

## Setup

1. [Setup and install Game Creator 2](https://docs.gamecreator.io/gamecreator/getting-started/installation/)
2. Download and install **LogicBlock | Game Creator 2** from the package manager

Optionally, you can install the example content.

## **Installing the Example Content**

To install example content for LogicBlock:

1. Open the **Game Creator Install Window**:\
   `Game Creator > Install...`
2. In the list, locate **LogicBlock** and check the box for **Examples**.
3. Click **Install** to add the examples to your project.

**Example Location**

Once installed, you can find the example content here:\
`Plugins/GameCreator/Installs/LogicBlock.Examples@1.0.0/`

## **Optional Setup**

When installing **LogicBlock** via the Unity Package Manager, it will automatically detect and integrate with the following **Game Creator 2 modules** if they are present:

* Inventory
* Stats
* Quests
* Melee
* Shooter

**Automatic Integration**

* If any of these modules are already installed, LogicBlock will **automatically enable full support** for them during installation.

**Manual Integration Check**

* If you install a supported module **after** LogicBlock, you can manually trigger the integration check via the Unity toolbar:\
  `Game Creator > LogicBlock > Detect and Install Integration`

**Removing Modules**

To properly remove a module:

1. First, **uninstall LogicBlock** via the Unity toolbar:\
   `Game Creator > Uninstall > LogicBlock`
2. Then uninstall the module you no longer need.
3. After that, **reinstall LogicBlock** to restore full functionality.

## Updating LogicBlock

When a new version of LogicBlock is released, we recommend **uninstalling the old version first** to ensure a clean update.

**How to Uninstall**

Go to the Unity toolbar:\
`Game Creator > Uninstall > LogicBlock`

After uninstalling, you can safely install the latest version.
