How to Use NetCode with Prefabs in DOTS AR

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 Prefabs in DOTS AR"

Full workflows and code to turn prefabs into NetCode ghosts

Click Here for DOTS Tutorial

This gitbook takes you through step-by-step full workflows and code to turn prefabs into NetCode ghosts. Once you've coded along and fully finished the How To Use NetCode with Prefabs tutorial, you will be able to turn prefabs into NetCode ghosts.

Click Here for DOTS Tutorial

High-Level steps to Use NetCode with 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