docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetTypeInfo

    GetTypeInfo(TypeIndex)

    Retrieve the TypeInfo for the TypeIndex.

    Declaration
    public static ref readonly TypeManager.TypeInfo GetTypeInfo(TypeIndex typeIndex)
    Parameters
    Type Name Description
    TypeIndex typeIndex

    TypeIndex to review the TypeInfo for

    Returns
    Type Description
    TypeManager.TypeInfo

    Returns the TypeInfo for the component corresponding to the TypeInfo.

    GetTypeInfo<T>()

    Retrieve the TypeInfo for the component T.

    Declaration
    public static ref readonly TypeManager.TypeInfo GetTypeInfo<T>()
    Returns
    Type Description
    TypeManager.TypeInfo

    The TypeInfo for the component corresponding to type T.

    Type Parameters
    Name Description
    T

    Component type to get TypeInfo fo

    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)