Struct GhostImportance
Singleton component used to control importance settings
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
[BurstCompile]
public struct GhostImportance : IComponentData, IQueryTypeParameter
Fields
Name | Description |
---|---|
GhostConnectionComponentType | ComponentType for connection data. GhostSendSystem will query for this component type before invoking the function assigned to ScaleImportanceFunction. |
GhostImportanceDataType | Optional singleton ComponentType for configuration data. Leave default if not required. Zero will be passed into the ScaleImportanceFunction. GhostSendSystem will query for this component type, passing the data into the ScaleImportanceFunction function when invoking it. |
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). GhostSendSystem will query for this component type before invoking the function assigned to ScaleImportanceFunction. |
NoScaleFunctionPointer | Default implementation of GhostImportance.ScaleImportanceDelegate. Will return basePriority without computation. |
ScaleImportanceFunction | This function pointer will be invoked with collected data as described in GhostImportance.ScaleImportanceDelegate. |