Class GhostSendSystem<TGhostSerializerCollection> | Unity NetCode | 0.2.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostSendSystem<TGhostSerializerCollection>

    Inheritance
    Object
    GhostSendSystem<TGhostSerializerCollection>
    Namespace: Unity.NetCode
    Syntax
    public abstract class GhostSendSystem<TGhostSerializerCollection> : JobComponentSystem, IGhostSendSystem where TGhostSerializerCollection : struct, IGhostSerializerCollection
    Type Parameters
    Name Description
    TGhostSerializerCollection

    Fields

    m_AllocatedGhostIds

    Declaration
    protected NativeArray<int> m_AllocatedGhostIds
    Field Value
    Type Description
    NativeArray<Int32>

    serializers

    Declaration
    protected TGhostSerializerCollection serializers
    Field Value
    Type Description
    TGhostSerializerCollection

    Methods

    InvokeSerialize<TSerializer, TSnapshotData>(TSerializer, ref DataStreamWriter, SerializeData)

    Declaration
    public static int InvokeSerialize<TSerializer, TSnapshotData>(TSerializer serializer, ref DataStreamWriter dataStream, SerializeData data)
        where TSerializer : struct, IGhostSerializer<TSnapshotData> where TSnapshotData : struct, ISnapshotData<TSnapshotData>
    Parameters
    Type Name Description
    TSerializer serializer
    DataStreamWriter dataStream
    SerializeData data
    Returns
    Type Description
    Int32
    Type Parameters
    Name Description
    TSerializer
    TSnapshotData

    IsEnabled()

    Declaration
    public abstract bool IsEnabled()
    Returns
    Type Description
    Boolean
    Implements
    IGhostSendSystem.IsEnabled()

    OnCreate()

    Declaration
    protected override void OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()

    OnUpdate(JobHandle)

    Declaration
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    Parameters
    Type Name Description
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    SetAllocatedGhostId(Int32)

    Declaration
    public bool SetAllocatedGhostId(int id)
    Parameters
    Type Name Description
    Int32 id
    Returns
    Type Description
    Boolean
    Implements
    IGhostSendSystem.SetAllocatedGhostId(Int32)
    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