docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetComponentType

    GetComponentType(int)

    Gets a ComponentType for the type stored at the index in the list.

    Declaration
    public ComponentType GetComponentType(int index)
    Parameters
    Type Name Description
    int index

    The index in the list.

    Returns
    Type Description
    ComponentType

    Returns the ComponentType for the type stored at the index in the list. The returned ComponentType always has access mode ReadWrite.

    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)