Class GhostPresentationGameObjectAuthoring
Add the component to a ghost prefab to configure the presentation gameobject for the ghost.
Implements
Inherited Members
Namespace: Unity.NetCode .Hybrid
Assembly: Unity.NetCode.Authoring.Hybrid.dll
Syntax
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.netcode@latest/index.html?subfolder=/api/Unity.NetCode.Hybrid.GhostPresentationGameObjectAuthoring.html")]
public class GhostPresentationGameObjectAuthoring : MonoBehaviour, IRegisterPlayableData
Remarks
If Server
Fields
ClientPrefab
The GameObject prefab which should be used as a visual representation of an entity on the client.
See Ghost
Declaration
public GameObject ClientPrefab
Field Value
Type | Description |
---|---|
Game |
ServerPrefab
The GameObject prefab which should be used as a visual representation of an entity on the server.
See Ghost
Declaration
public GameObject ServerPrefab
Field Value
Type | Description |
---|---|
Game |
Methods
RegisterPlayableData<T>()
Implementation of IRegister
Declaration
public void RegisterPlayableData<T>() where T : unmanaged, IComponentData
Type Parameters
Name | Description |
---|---|
T | PlayableComponent type |