docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property m_TargetIdBeingSynchronized

    m_TargetIdBeingSynchronized

    The relative client identifier targeted for the serialization of this NetworkBehaviour instance.

    Declaration
    protected ulong m_TargetIdBeingSynchronized { get; }
    Property Value
    Type Description
    ulong
    Remarks

    This value will be set prior to OnSynchronize<T>(ref BufferSerializer<T>) being invoked. For writing (server-side), this is useful to know which client will receive the serialized data. For reading (client-side), this will be the LocalClientId. When synchronization of this instance is complete, this value will be reset to 0

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)