Struct UnmanagedGhostPresentationGameObjectPrefab
The GameObject prefabs which should be used as a visual representation of an entity. Unmanaged replacement for the deprecated GhostPresentationGameObjectPrefab; the prefab references are stored as UnityObjectRef<T> so the component does not need to be managed.
Implements
IComponentData
IQueryTypeParameter
Inherited Members
Namespace: Unity.NetCode.Hybrid
Assembly: Unity.NetCode.Hybrid.dll
Syntax
public struct UnmanagedGhostPresentationGameObjectPrefab : 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 UnityObjectRef<GameObject> Client
Field Value
| Type | Description |
|---|---|
| UnityObjectRef<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 UnityObjectRef<GameObject> Server
Field Value
| Type | Description |
|---|---|
| UnityObjectRef<GameObject> |
Implements
Unity.Entities.IComponentData
Unity.Entities.IQueryTypeParameter