docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetComponentCount

    GetComponentCount(Entity)

    Gets the number of component types associated with an entity.

    Declaration
    public int GetComponentCount(Entity entity)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    Returns
    Type Description
    int

    The number of components.

    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)