Class GhostCollectionSystem
Inheritance
GhostCollectionSystem
Inherited Members
Unity.Entities.SystemBase.OnCreateForCompiler()
Syntax
public class GhostCollectionSystem : SystemBase
Methods
AddSerializer(GhostComponentSerializer.State)
Declaration
public void AddSerializer(GhostComponentSerializer.State state)
Parameters
CalculateComponentCollectionHash()
Declaration
public ulong CalculateComponentCollectionHash()
Returns
ChangeMaskArraySizeInUInts(Int32)
Compute the number of uint necessary to encode the required number of bits
Declaration
public static int ChangeMaskArraySizeInUInts(int numBits)
Parameters
Type |
Name |
Description |
Int32 |
numBits |
|
Returns
CreatePredictedSpawnPrefab(EntityManager, Entity)
Convert a prefab from the prefab collection to a predictive spawn version of the prefab. This will not modify the prefab on the server,
so it is safe to unconditionally call this method to get a prefab that can be used for predictive spawning in a prediction system.
Declaration
public static Entity CreatePredictedSpawnPrefab(EntityManager entityManager, Entity prefab)
Parameters
Returns
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
OnUpdate()
Declaration
protected override void OnUpdate()
Overrides
SnapshotSizeAligned(Int32)
Align the give size to 16 byte boundary
Declaration
public static int SnapshotSizeAligned(int size)
Parameters
Type |
Name |
Description |
Int32 |
size |
|
Returns
SnapshotSizeAligned(UInt32)
Align the give size to 16 byte boundary
Declaration
public static uint SnapshotSizeAligned(uint size)
Parameters
Type |
Name |
Description |
UInt32 |
size |
|
Returns