Here is how to setup the ghost components for first-person character prefabs:
Do the following for both prefabs (FirstPersonCharacter, FirstPersonPlayer):
- Add a
Ghost Authoring Componentand aGhost Authoring Inspection Component. - Set the
Default Ghost Modeof theGhost Authoring ComponenttoOwner Predicted. - Set
Has Owneron theGhost Authoring Componentto true.
Do the following for the FirstPersonCharacter prefab:
- In the
Ghost Authoring Inspection Component, use theDontSerializeVariantas the variant forPhysicsVelocity.
Do the following for the FirstPersonPlayer prefab:
- In the
Ghost Authoring Component, make sureSupport Auto Command Targetis true. - In the
Ghost Authoring Inspection Component, use theDontSerializeVariantas the variant forLocalTransform.