How to Use NetCode with Player Prefabs in Unity DOTS

This will take you about 20 minutes in prep time if you don't have Unity set-up, and 30 minutes in coding and debug time.

Click Here for DOTS Tutorial

Stop struggling with the limited documentation. Follow this step-by-step tutorial, "How to Use NetCode with Player Prefabs in Unity DOTS"

Full workflows and code to turn a Player prefab into a NetCode ghost and spawn Thin Clients

Click Here for DOTS Tutorial

This gitbook takes you through step-by-step full workflows and code to turn a Player prefab into a NetCode ghost and spawn Thin Clients. Once you've coded along and fully finished the How To Use NetCode with Player Prefabs tutorial, you will be able to turn a Player prefab into a NetCode ghost and spawn Thin Clients.

Click Here for DOTS Tutorial

High-Level steps to Use NetCode with Player Prefabs:

Number 01

Add a GhostAuthoring component on Player prefab

Number 02

Store client inputs as Commands in a new input system

Number 03

Update targetEntity field to point at the spawned entity on the server