docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetObjectValue

    GetObjectValue<TObject>(UntypedWeakReferenceId)

    For an object that is loaded, this will return the loaded value.

    Declaration
    [ExcludeFromBurstCompatTesting("References managed engine API and static data")]
    public static TObject GetObjectValue<TObject>(UntypedWeakReferenceId objectId) where TObject : Object
    Parameters
    Type Name Description
    UntypedWeakReferenceId objectId

    The object id.

    Returns
    Type Description
    TObject

    The reference to the object.

    Type Parameters
    Name Description
    TObject

    The type of object to access.

    In This Article
    • GetObjectValue<TObject>(UntypedWeakReferenceId)
    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)