Struct PrioChunk
Structure that contains the ghost Unity.Entities.ArchetypeChunk to serialize. Each chunk has its own priority, that is calculated based on the importance scaling factor (set for each ghost prefab at authoring time) and that can be further scaled using a custom ScaleImportanceFunction or BatchScaleImportanceFunction.
Implements
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public struct PrioChunk : IComparable<PrioChunk>
Fields
chunk
The ghost chunk that should be processed.
Declaration
public ArchetypeChunk chunk
Field Value
Type | Description |
---|---|
ArchetypeChunk |
priority
The priority of the chunk. When using the BatchScaleImportanceFunction scaling, it is the method responsibility to update this with the scaled priority.
Declaration
public int priority
Field Value
Type | Description |
---|---|
int |
Methods
CompareTo(PrioChunk)
Used for sorting the based on the priority in descending order.
Declaration
public int CompareTo(PrioChunk other)
Parameters
Type | Name | Description |
---|---|---|
PrioChunk | other |
Returns
Type | Description |
---|---|
int |