What the addon does
An optional package that lives in Assets/FBSystemFishNet/. It turns any scene and any FBSystem player into a FishNet-multiplayer setup without touching the base package.
- A 4-step Setup Wizard wires NetworkManager, the player bridge and world items — idempotently, existing objects are reused.
FishNetPlayerBridgesyncs movement, animator state, look pitch and item equipment and auto-discovers owner-only components (ItemSwitcher,PlayerInteraction,PlayerDropSystem).FishNetFPCutterVisibilityhides the head for the local player (no FP clipping) and shows the full body on every remote.- A drag-&-drop world-item window creates
_Netvariants, registers them, and fills the bridge prefab list. - A prepared demo scene is included and added to Build Settings.
Requirements
| Requirement | Version | Notes |
|---|---|---|
| FBSystem | v1.3.0+ | base asset must already be in the project |
| FishNet | 4.7.2 | install before importing FBSystemFishNet — FishNet is not bundled in the addon |
| Unity | 6000.5.0+ (Unity 6.5) | same as the base asset |
| Render Pipeline | URP | inherited from the base asset (demo + FPCutter) |
1. Install FishNet and the addon
- Import FishNet (4.7.2) into your Unity project.
- Import the optional
FBSystemFishNetaddon folder/package. - Open the scene you want to make multiplayer-ready.
Video: FishNet Quick Setup
Die 5 Schritte des Wizards in Aktion — von der leeren Szene zum Host-Test. Das Video zeigt das komplette Setup ohne Schnitte.
Auf YouTube öffnen ↗ — falls das Embed blockiert ist. Studio-Link: BN9u25nHWHw
2. FishNet Setup Wizard
Menu: Tools ▸ FBSystem ▸ FishNet ▸ Setup Wizard. Ein 5-Schritt-Wizard (Header mit Icon, 5er-Fortschrittsleiste, Karten-Sektionen, < Back / Next > — Finish Setup). Der Wizard liegt ausschließlich in Assets/FBSystemFishNet und fasst Core-Dateien unter Assets/FBSystem nicht an — zum Export des Addons als .unitypackage nur den FishNet-Ordner exportieren. Jeder Schritt ist idempotent.
Step 1: Scene Setup
Bereitet die offene Szene als FishNet-Host vor:
- Erstellt oder wiederverwendet
NetworkManagermit Tugboat-Transport,ObserverManager,PlayerSpawner, Spawnable-Prefab-Verdrahtung undEventSystem. - Instanziiert FishNets eigenes
NetworkHudCanvas-Prefab (Assets/FishNet/Demos/Prefabs/NetworkHudCanvas.prefab) für Start Server / Start Client. Wenn Demos entfernt wurden, zeigt der Wizard eine Warnung — Prefab wiederherstellen. - Alle Statuszeilen zeigen grün:
NetworkManager,TransportManager + Tugboat,PlayerSpawner,Connection HUD,EventSystem. Button ✨ Make Scene FishNet Ready führt den Schritt aus.
Step 2: Select Player
Wähle das FBSystem-Player-GameObject aus der Hierarchy (Szene-Instanz — kein reines Prefab-Asset — mit PlayerController, Animator etc.). Der Wizard fügt NetworkObject und FishNetPlayerBridge hinzu und rekonfiguriert die Bridge falls vorhanden.
- Feld
Player Root:None (Game Object)→ per Drag & Drop die Instanz aus der Szene ziehen. - Gelber Hinweis: Drag your player from the Hierarchy (scene instance). Prefab assets must be in a scene.
- Bei FPCutter-Nutzung wird
FishNetFPCutterVisibilityautomatisch verdrahtet — Kopf lokal versteckt, remote voll sichtbar.
Step 3: FishNet Components
Fügt und konfiguriert die Netzwerk-Komponenten — ohne Core-FBSystem-Dateien zu ändern:
NetworkObject,NetworkTransform (CharacterController, ClientAuth),NetworkAnimator (ClientAuth, Animator ref),FishNetPlayerBridge,FishNetFPCutterVisibility (local=FirstPerson / remote=ThirdPerson)— alle mit grünem Haken.- Info-Zeile bei erkanntem FPCutter: FPCutter mesh detected — FishNetFPCutterVisibility will hide Head for local player (no camera clipping) and show full body for remotes.
- Button ✨ Configure FishNet Components. Unter Recent Changes erscheinen
Configured NetworkObject / NetworkTransform / NetworkAnimatorundFishNetFPCutterVisibility already present.
Step 4: World Items
Konvertiert WorldItem-Prefabs zu netzwerkfähigen Varianten (fügt NetworkObject + NetworkTransform hinzu, erzeugt *_Net.prefabs unter Assets/FBSystemFishNet/Testing/WorldItems/ und registriert sie als Spawnable):
- Beispiel aus dem Screenshot:
Found 2 item(s) in ItemContainer→[0] 1 -> Flashlightworlditem,[1] 2 -> Box_worlditem. - Button ✨ Setup Networked World Items (from ItemContainer) und Open WorldItem Setup Window (Drag & Drop, Find All, Remove) für manuelles Verwalten.
- Hinweis: Für freies Hinzufügen per Drag & Drop
Tools/FBSystem/FishNet/Setup Networked World Items(eigenes Fenster) nutzen.
Step 5: Validation
Finaler Health-Check. Behebe verbleibende Warnungen — dieser Schritt ändert keine Core-FBSystem-Dateien.
- Bei Erfolg: ✨ All checks passed — the scene and player are ready for FishNet. Press Play and use FishNet's HUD buttons (Start Server / Start Client).
- Button Select NetworkManager in Scene und Abschnitt Export:
To ship the addon as .unitypackage: select Assets/FBSystemFishNet folder -> Right Click -> Export Package. Core Assets/FBSystem stays untouched and works without FishNet. - Wizard mit Finish Setup schließen. Der Wizard generiert bei Bedarf ein
GeneratedPlayers/*_Network-Prefab-Asset, damitPlayerSpawnernie eine Szene-Instanz hält — das behebtPrefabId 65535/NullReferencebeim Spawn.
Owner-only Behaviours (ItemSwitcher, PlayerInteraction, PlayerDropSystem) werden automatisch auf der Bridge erkannt.
3. Networked world items
Menu: Tools ▸ FBSystem ▸ FishNet ▸ Setup Networked World Items — a drag-&-drop window (NetworkWorldItemSetupWindow). Use Find All WorldItems, add or remove entries before applying, with Auto-Find Bridge and ItemContainer integration. It:
- Creates
_NetWorldItem variants. - Registers them with FishNet.
- Fills the bridge's prefab list on the player.
Pickup despawns the server object; drop spawns a networked WorldItem visible to all clients (server authoritative).
What gets synchronized
| What | How |
|---|---|
| Root position & rotation | FishNet NetworkTransform, client-authoritative |
| Animator state | FishNet NetworkAnimator |
| Look pitch | networked for camera-dependent remote IK |
| Remote Foot IK | supported on remote players (new in v1.3) |
| Equip / unequip | by container slot through HandItemSocket events |
| Item pickup | despawns the server object |
| Item drop | spawns a networked WorldItem for all clients |
| Camera & input | local-only: PlayerCameraController.SetLocalCameraActive; owner-only local input |
| Server sanity checks | movement validation; item RPCs rejected after invalid teleport or non-finite transform |
Not included by design
Testing host & remote client
The addon ships a prepared test setup (already in Build Settings):
- Scene:
Assets/FBSystemFishNet/Testing/Demo.unity - Player:
Assets/FBSystemFishNet/Testing/FBSystemNetworkPlayer.prefab - Collection:
Assets/FBSystemFishNet/Testing/FBSystemFishNetPrefabs.asset
Host test in the editor
- Open
Demo.unity— it must contain the FishNetNetworkManagerprefab and itsPlayerSpawner. - Press Play. The HUD shows Start Server and Start Client. Start both for a host test.
- Verify movement, jump, sprint, crouch, root rotation, remote animator state and look pitch. The remote player must not process local input.
- Switch items (number keys,
Q, or scroll) and verify equip/unequip on the other instance. Item use stays local. - Stop the client first, then the server. Check the Console for bridge errors or movement-sanity warnings.
Remote-client test
- Build
Demo.unityfor Windows. - Run the build as the client and the editor scene as the host.
- Start the server in the editor and the client in the build with the HUD buttons.
- Repeat the same verification as above across both instances.
Troubleshooting
| Symptom | Fix |
|---|---|
PrefabId 65535 / NullReference on PlayerSpawner spawn | Run the wizard's Validation step so PlayerSpawner holds a prefab asset (GeneratedPlayers/*_Network) registered in DefaultPrefabObjects — never a scene instance. |
| No Start Server / Start Client buttons | NetworkHudCanvas comes from FishNet/Demos/Prefabs. If you deleted Demos, the wizard warns — restore NetworkHudCanvas.prefab. |
| Remote head clips in FP / always hidden | Player needs FPCutterController. The addon wires FishNetFPCutterVisibility to hide the head locally and show the full body on remotes. |
| Equip not syncing | Equip must go through ItemContainer slots (HandItemSocket.EquipFromContainer). Direct socket attaches without a slot carry no slot index. |
| Item RPCs rejected | Server sanity kicked after an invalid teleport or non-finite transform — fix the teleport driver before calling item code. |
Easy FP Full Body Controller and the FishNet addon are available on the Unity Asset Store.
View on Asset Store ↗