docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method InheritsFrom

    InheritsFrom(Type, Type)

    Checks if this type inherits from this baseType anywhere up the inheritence order.

    Declaration
    public static bool InheritsFrom(this Type type, Type baseType)
    Parameters
    Type Name Description
    Type type

    "this" type

    Type baseType

    baseType to check inheritance for

    Returns
    Type Description
    bool

    true if there is inheritance, false otherwise.

    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)