docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Delegate NetworkObject.OnOwnershipRequestedDelegateHandler

    The delegate handler declaration used by OnOwnershipRequested.

    Namespace: Unity.Netcode
    Assembly: Unity.Netcode.Runtime.dll
    Syntax
    public delegate bool NetworkObject.OnOwnershipRequestedDelegateHandler(ulong clientRequesting)
    Parameters
    Type Name Description
    ulong clientRequesting

    The ClientId of the client requesting ownership

    Returns
    Type Description
    bool

    True to approve the ownership request, false to deny the request and prevent ownership transfer

    In This Article
    Back to top
    Copyright © 2025 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)