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 © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023