> 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/fish-net.md).

# Fish-Net

This integration connects the building system with [Fish-Net Networking](https://assetstore.unity.com/packages/tools/network/fishnet-networking-evolved-207815).\
Route building commands through the server and sync to all observers.

***

### Example Scene

The demo scene is ready to play and can be found in the integration folder.\
It includes a multiplayer setup with network-ready Building Parts and pre-configured player prefabs.

***

### How It Works

The integration adds two network adapters to route building commands through [Fish-Net](https://assetstore.unity.com/packages/tools/network/fishnet-networking-evolved-207815).\
Place, destroy, adjust, and upgrade commands use `[ServerRpc]` and sync via `[ObserversRpc]`.\
Save and load operations are handled by the server only.

**FishNetBuildingControllerAdapter:**&#x20;

Add to your player prefab alongside the Building Controller.\
Requires a `NetworkObject`.\
Routes all building commands through the server.

**FishNetBuildingSaveAdapter:**&#x20;

Add to a persistent scene object.\
Only the server saves and loads.\
Sets save mode to Manual and disables auto-save.

***

### Requirements

* [Fish-Net](https://assetstore.unity.com/packages/tools/network/fishnet-networking-evolved-207815) (v4.6.19R+) by FirstGearGames

{% embed url="<https://assetstore.unity.com/packages/tools/network/fishnet-networking-evolved-207815>" %}

***

### Installation

{% stepper %}
{% step %}

### Install Fish-Net Integration

Make sure **Easy Build System** and [Fish-Net](https://assetstore.unity.com/packages/tools/network/fishnet-networking-evolved-207815) are both imported in your project.

Open the Hub at\
`Tools > Mind Code Interactive > Easy Build System > Hub > Integrations`

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

Search for [Fish-Net Networking](https://assetstore.unity.com/packages/tools/network/fishnet-networking-evolved-207815) and click **Install Integration**.\
Wait for the recompile to finish.
{% endstep %}

{% step %}

### Demo Scene

Open the demo scene and try it. It's located in:\
`Mind Code Interactive/Easy Build System/Packages/Integrations/FishNet`

You can also build a client and run multiple instances to test multiplayer building.
{% endstep %}
{% endstepper %}

***

### Adding Your Own Parts

Create your [Building Part](/easy-build-system/reference/building-part.md) as usual (see the [Building Part Guide](/easy-build-system/learning/beginner-guides/building-part-guide.md)).\
Add a `NetworkObject` component and register the prefab in [Fish-Net's](https://assetstore.unity.com/packages/tools/network/fishnet-networking-evolved-207815) spawnable prefab list.
