Class GhostCollectionSystem | Unity NetCode | 0.6.0-preview.7
docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostCollectionSystem

    Inheritance
    Object
    ComponentSystemBase
    SystemBase
    GhostCollectionSystem
    Inherited Members
    SystemBase.CompleteDependency()
    SystemBase.Update()
    SystemBase.GetComponent<T>(Entity)
    SystemBase.SetComponent<T>(Entity, T)
    SystemBase.HasComponent<T>(Entity)
    SystemBase.GetComponentDataFromEntity<T>(Boolean)
    SystemBase.GetBuffer<T>(Entity)
    SystemBase.GetBufferFromEntity<T>(Boolean)
    Unity.Entities.SystemBase.OnCreateForCompiler()
    SystemBase.Dependency
    SystemBase.Entities
    SystemBase.Job
    ComponentSystemBase.OnStartRunning()
    ComponentSystemBase.OnStopRunning()
    ComponentSystemBase.ShouldRunSystem()
    ComponentSystemBase.GetComponentTypeHandle<T>(Boolean)
    ComponentSystemBase.GetDynamicComponentTypeHandle(ComponentType)
    ComponentSystemBase.GetBufferTypeHandle<T>(Boolean)
    ComponentSystemBase.GetSharedComponentTypeHandle<T>()
    ComponentSystemBase.GetDynamicSharedComponentTypeHandle(ComponentType)
    ComponentSystemBase.GetEntityTypeHandle()
    ComponentSystemBase.RequireForUpdate(EntityQuery)
    ComponentSystemBase.RequireSingletonForUpdate<T>()
    ComponentSystemBase.HasSingleton<T>()
    ComponentSystemBase.GetSingleton<T>()
    ComponentSystemBase.TryGetSingleton<T>(T)
    ComponentSystemBase.SetSingleton<T>(T)
    ComponentSystemBase.GetSingletonEntity<T>()
    ComponentSystemBase.TryGetSingletonEntity<T>(Entity)
    ComponentSystemBase.GetEntityQuery(ComponentType[])
    ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
    ComponentSystemBase.GetEntityQuery(EntityQueryDesc[])
    ComponentSystemBase.Enabled
    ComponentSystemBase.EntityQueries
    ComponentSystemBase.GlobalSystemVersion
    ComponentSystemBase.LastSystemVersion
    ComponentSystemBase.EntityManager
    ComponentSystemBase.World
    ComponentSystemBase.Time
    Namespace: Unity.NetCode
    Syntax
    public class GhostCollectionSystem : SystemBase

    Methods

    AddSerializer(GhostComponentSerializer.State)

    Declaration
    public void AddSerializer(GhostComponentSerializer.State state)
    Parameters
    Type Name Description
    GhostComponentSerializer.State state

    CalculateComponentCollectionHash()

    Declaration
    public ulong CalculateComponentCollectionHash()
    Returns
    Type Description
    UInt64

    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
    Type Description
    Int32

    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
    Type Name Description
    EntityManager entityManager
    Entity prefab
    Returns
    Type Description
    Entity

    OnCreate()

    Declaration
    protected override void OnCreate()
    Overrides
    ComponentSystemBase.OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()
    Overrides
    ComponentSystemBase.OnDestroy()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    Overrides
    SystemBase.OnUpdate()

    SnapshotSizeAligned(Int32)

    Align the give size to 16 byte boundary

    Declaration
    public static int SnapshotSizeAligned(int size)
    Parameters
    Type Name Description
    Int32 size
    Returns
    Type Description
    Int32

    SnapshotSizeAligned(UInt32)

    Align the give size to 16 byte boundary

    Declaration
    public static uint SnapshotSizeAligned(uint size)
    Parameters
    Type Name Description
    UInt32 size
    Returns
    Type Description
    UInt32
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023