Delegate GhostImportance.BatchScaleImportanceDelegate
Scale importance delegate. This describes the interface GhostSendSystem will use to compute importance scaling. The method is responsible to modify the priority property for all the chunks (the higher the prioriy, the more often a ghost's data is synchronized). See GhostDistanceImportance for example implementation.
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public delegate void GhostImportance.BatchScaleImportanceDelegate(IntPtr connectionData, IntPtr importanceData, IntPtr sharedComponentTypeHandlePtr, ref UnsafeList<PrioChunk> chunkData)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | connectionData | Per connection data. Ex. position in the world that should be prioritized. |
IntPtr | importanceData | Optional configuration data. Ex. Each tile's configuration. Handle IntPtr.Zero! |
IntPtr | sharedComponentTypeHandlePtr | Unity.Entities.DynamicSharedComponentTypeHandle to retrieve the per-chunk tile information. Ex. each chunk's tile index. |
UnsafeList<PrioChunk> | chunkData |