docs.unity.cn
    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
    Int32

    The number of components.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use