Class GhostPresentationGameObjectPrefab
The GameObject prefabs which should be used as a visual representation of an entity.
Inherited Members
Namespace: Unity.NetCode.Hybrid
Assembly: Unity.NetCode.Hybrid.dll
Syntax
public class GhostPresentationGameObjectPrefab : IComponentData, IQueryTypeParameter
Fields
Client
The GameObject prefab which should be used as a visual representation of an entity on the client. It is not possible to have separate GameObjects for interpolated and predicted ghosts, doing that would break prediction switching.
Declaration
public GameObject Client
Field Value
Type | Description |
---|---|
GameObject |
Server
The GameObject prefab which should be used as a visual representation of an entity on the server. Since this is the server instance it should usually not be visible, but it is needed to for example run animations on the server.
Declaration
public GameObject Server
Field Value
Type | Description |
---|---|
GameObject |