Struct GhostImportance
Singleton component used to control importance settings
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
[BurstCompile]
public struct GhostImportance : IComponentData, IQueryTypeParameter
Fields
BatchScaleImportanceFunction
This function pointer will be invoked with collected data as described in Ghost
It is mandatory to set either this or Scale
Declaration
public PortableFunctionPointer<GhostImportance.BatchScaleImportanceDelegate> BatchScaleImportanceFunction
Field Value
Type | Description |
---|---|
Portable |
GhostConnectionComponentType
ComponentType for connection data. Ghost
Declaration
public ComponentType GhostConnectionComponentType
Field Value
Type | Description |
---|---|
Component |
GhostImportanceDataType
Optional singleton ComponentType for configuration data.
Leave default if not required. Zero will be passed into the Batch
Declaration
public ComponentType GhostImportanceDataType
Field Value
Type | Description |
---|---|
Component |
GhostImportancePerChunkDataType
ComponentType for per chunk data. Must be a shared component type! Each chunk represents a group of entities,
collected as they share some importance-related value (e.g. distance to the players character controller).
Ghost
Declaration
public ComponentType GhostImportancePerChunkDataType
Field Value
Type | Description |
---|---|
Component |
NoScaleFunctionPointer
Default implementation of Ghost
Declaration
public static readonly PortableFunctionPointer<GhostImportance.ScaleImportanceDelegate> NoScaleFunctionPointer
Field Value
Type | Description |
---|---|
Portable |
ScaleImportanceFunction
This function pointer will be invoked with collected data as described in Ghost
It is mandatory to set either this or Batch
Declaration
public PortableFunctionPointer<GhostImportance.ScaleImportanceDelegate> ScaleImportanceFunction
Field Value
Type | Description |
---|---|
Portable |