docs.unity.cn
    Show / Hide Table of Contents

    Method GetDescendantCount

    GetDescendantCount(TypeIndex)

    Returns how many component types are known to the TypeManager that inherit from a given component type

    Declaration
    [GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[]{typeof(Entity)})]
    public static int GetDescendantCount(TypeIndex typeIndex)
    Parameters
    Type Name Description
    TypeIndex typeIndex

    Parent type

    Returns
    Type Description
    Int32

    Returns count of component types inheriting from typeIndex's component type

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023