Delegate GhostImportance.ScaleImportanceDelegate
Scale importance delegate. This describes the interface GhostSendSystem will use to compute importance scaling. The higher importance value returned from this method, the more often a ghost's data is synchronized. See GhostDistanceImportance for example implementation.
Namespace: Unity.NetCode
Syntax
public delegate int ScaleImportanceDelegate(IntPtr connectionData, IntPtr importanceData, IntPtr chunkTile, int basePriority);
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 | chunkTile | Per chunk information. Ex. each entity's tile index. |
| Int32 | basePriority | Priority computed by GhostSendSystem after computing tick when last updated and irrelevance. |
Returns
| Type | Description |
|---|---|
| Int32 |