docs.unity3d.com
Search Results for

    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
    int

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

    In This Article
    • GetDescendantCount(TypeIndex)
    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)