{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Operator implicit operator | Entities | 1.2.0-exp.3
docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator UnityObjectRef<T>(T)

    Implicitly converts an Object to an UnityObjectRef<T>.

    Declaration
    public static implicit operator UnityObjectRef<T>(T instance)
    Parameters
    Type Name Description
    T instance

    Instance of the Object to store as a reference.

    Returns
    Type Description
    UnityObjectRef<T>

    A UnityObjectRef referencing instance

    implicit operator T(UnityObjectRef<T>)

    Implicitly converts an UnityObjectRef<T> to an Object.

    Declaration
    public static implicit operator T(UnityObjectRef<T> unityObjectRef)
    Parameters
    Type Name Description
    UnityObjectRef<T> unityObjectRef

    Reference used to access the Object.

    Returns
    Type Description
    T

    The instance of type T referenced by unityObjectRef.

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