docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsDescendantOf

    IsDescendantOf(TypeIndex, TypeIndex)

    Used to determine if a component inherits from another component type

    Declaration
    public static bool IsDescendantOf(TypeIndex typeIndex, TypeIndex baseTypeIndex)
    Parameters
    Type Name Description
    TypeIndex typeIndex

    Child type to test if it inherits from baseTypeIndex

    TypeIndex baseTypeIndex

    Parent type typeIndex may have inherited from

    Returns
    Type Description
    bool

    Returns if child is a subclass of the parent component type

    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)