Class GhostCollectionSystem
Inheritance
GhostCollectionSystem
Inherited Members
Unity.Entities.SystemBase.GetBuffer<T>(Unity.Entities.Entity)
Unity.Entities.SystemBase.GetBufferFromEntity<T>(System.Boolean)
Unity.Entities.SystemBase.OnCreateForCompiler()
Unity.Entities.ComponentSystemBase.GetComponentTypeHandle<T>(System.Boolean)
Unity.Entities.ComponentSystemBase.GetDynamicComponentTypeHandle(Unity.Entities.ComponentType)
Unity.Entities.ComponentSystemBase.GetBufferTypeHandle<T>(System.Boolean)
Unity.Entities.ComponentSystemBase.GetSharedComponentTypeHandle<T>()
Unity.Entities.ComponentSystemBase.GetEntityTypeHandle()
Unity.Entities.ComponentSystemBase.ExecutingSystemType
Syntax
public class GhostCollectionSystem : SystemBase
Fields
m_GhostComponentCollection
Declaration
public NativeArray<GhostComponentSerializer.State> m_GhostComponentCollection
Field Value
m_GhostComponentIndex
Declaration
public NativeList<GhostCollectionSystem.GhostComponentIndex> m_GhostComponentIndex
Field Value
m_GhostTypeCollection
Declaration
public NativeList<GhostCollectionSystem.GhostTypeState> m_GhostTypeCollection
Field Value
Properties
GhostTypeCollectionHash
Declaration
public ulong GhostTypeCollectionHash { get; }
Property Value
Methods
AddSerializer(GhostComponentSerializer.State)
Declaration
public void AddSerializer(GhostComponentSerializer.State state)
Parameters
CalculateComponentCollectionHash()
Declaration
public ulong CalculateComponentCollectionHash()
Returns
CalculateGhostCollectionHash()
Declaration
public ulong CalculateGhostCollectionHash()
Returns
ChangeMaskArraySizeInUInts(Int32)
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)
Declaration
public static int SnapshotSizeAligned(int size)
Parameters
Type |
Name |
Description |
Int32 |
size |
|
Returns