# Photon Inventory

This module seamlessly integrates **Inventory 2** module from **Game Creator 2** with **Photon Unity Networking (PUN 2)** it synchronizes everything from an inventory bag with a single click.

{% embed url="<https://youtu.be/LA9My32ATeU>" %}

{% hint style="success" %}
Try the [**Demo**](https://hjupter.itch.io/photon-inventory-game-creator-2) now!
{% endhint %}

## Key Features

* Keeps player's Bag in sync even with late joiners
* Synchronize **Bag Items** automatically
* Synchronize **Equipment** automatically
* Synchronize **Wealth** automatically
* Synchronize **Sockets** automatically
* Compatible with any other Game Creator 2 module

## Setup <a href="#setup" id="setup"></a>

You can get **Photon Unity Networking** from [**here**](https://www.assetstore.unity3d.com/en/#!/content/1786).

Download the package from the [**Unity Asset Store**](https://u3d.as/31Vd).\
You'll first need to have Game Creator 2 and Photon Unity Networking 2 installed.

Then, bring up the *Game Creator Install Window* select the Photon Core package and install it.

{% hint style="danger" %}
This module requires [**Game Creator 2**](https://assetstore.unity.com/packages/tools/game-toolkits/game-creator-2-203069) and [**Photon Unity Network 2**](https://assetstore.unity.com/packages/tools/network/pun-2-free-119922) and won't work without it. Don't attempt to extract the package inside the Plugins/ folder as it will throw some errors.
{% endhint %}

<figure><img src="/files/eACBcnQEQPukyYy277q1" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Having troubles?** Join our channel in Game Creator's [**Discord server**](https://discord.com/invite/99bbWBzKDX) for realtime discussions.
{% endhint %}


---

# 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.ninjutsugames.com/game-creator-2/photon-module-2/photon-inventory.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.
