# Photon Traversal

## Overview

Photon Traversal tightly integrates Photon by automatically syncronizing all types of **obstacles, climbables** and **players**

There are three main objects in the **Photon Traversal** sub-module.

* **Traversable Registry:** A configuration object which contains all **Traversable** objects that are required for your game to run.
* **Traversal Character Network:** A component required to syncronize all traversable character actions.
* **Climbable Network:** A component required to syncronize the climbable actions of an object.
* **Obstacle Network:** A component required to syncronize the obstacle actions of an object.
* **Graple Hook Network:** A component required to syncronize the graple hook actions of an object.

{% hint style="success" %}
This sub-module requires the [**Traversal**](https://assetstore.unity.com/packages/tools/animation/traversal-179526)[ ](https://gamecreator.page.link/shooter)and [**Photon Network**](https://assetstore.unity.com/packages/tools/network/photon-module-for-game-creator-123155) module
{% endhint %}

{% hint style="info" %}
Download the [**Photon Traversal**](https://u3d.as/2sC2) module
{% endhint %}

## Setup

Setting up the **Photon Traversal** sub module is a fairly straight forward process after you learn how to use the **Photon module** and **Traversal** module.

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-310f5605481dee8536205f36fd81b4c868586642%2FSetup.png?alt=media)

### 1. Traversable Registry

The first thing you need is to setup a **Traversable Registry** component into your scene.

{% hint style="info" %}
**Right Click** in **Hierarchy** panel:\
Game Creator > Traversal > Traversable Registry
{% endhint %}

### 2. Register All Traversables

Use the **Find All** button to look up for all **Traversable** components on the scene.

Use the **Convert to Network** to replace all regular single player components to their respective networked version.

Use **Convert to Normal** to roll them back to the original Traversal components

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-b12b099139db257772f5e2b7818e48923eb0f6d8%2Fimage.png?alt=media)

### 3. Traversable Character Network

The **final step** is to add a **Traversable Character Network** component to your player prefab and you are good to go.

This component has 2 toggle options:

* **Disable With Chat:** when this is on and if room chat is open it will disable traversable control inputs.
* **Debug:** this will throw info messages into the console log just for debugging.

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-2695a1846814e7eff6a55bb4cc377d13cbb3d62a%2Fimage.png?alt=media)

{% hint style="info" %}
Please keep in mind this module is in **BETA**, if you see any bugs just report it to [**support@ninjutsugames.com**](mailto:support@ninjutsugames.com) or at the [**Discord Server**](https://discordapp.com/invite/u2K64A7)
{% 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-1/photon-network/sub-modules/photon-traversal.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.
