docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator NetworkBehaviour(NetworkBehaviourReference)

    Implicitly convert NetworkBehaviourReference to NetworkBehaviour.

    Declaration
    public static implicit operator NetworkBehaviour(NetworkBehaviourReference networkBehaviourRef)
    Parameters
    Type Name Description
    NetworkBehaviourReference networkBehaviourRef

    The NetworkBehaviourReference to convert from.

    Returns
    Type Description
    NetworkBehaviour

    The NetworkBehaviour this class is holding a reference to

    implicit operator NetworkBehaviourReference(NetworkBehaviour)

    Implicitly convert NetworkBehaviour to NetworkBehaviourReference.

    Declaration
    public static implicit operator NetworkBehaviourReference(NetworkBehaviour networkBehaviour)
    Parameters
    Type Name Description
    NetworkBehaviour networkBehaviour

    The NetworkBehaviour to convert from.

    Returns
    Type Description
    NetworkBehaviourReference

    The NetworkBehaviourReference created from the NetworkBehaviour passed in as a parameter

    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)