docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetAs

    GetAs<T>(DeserializationSettings)

    Returns the object as a defined type.

    Declaration
    public T GetAs<T>(DeserializationSettings deserializationSettings = null)
    Parameters
    Type Name Description
    DeserializationSettings deserializationSettings

    Deserialization settings for how to handle properties like missing members.

    Returns
    Type Description
    T

    The internal object case to type T.

    Type Parameters
    Name Description
    T

    The type to cast internal object to.

    Implements
    IDeserializable.GetAs<T>(DeserializationSettings)

    GetAs<T>()

    Overload for returning the object as a defined type but without needing to specify DeserializationSettings.

    Declaration
    public T GetAs<T>()
    Returns
    Type Description
    T

    The internal object case to type T.

    Type Parameters
    Name Description
    T

    The type to cast internal object to.

    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)