docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method IsAssignableFromOrSubclassOf

    IsAssignableFromOrSubclassOf(Type, Type)

    Tests if class type IsAssignableFrom or IsSubclassOf another type.

    Declaration
    public static bool IsAssignableFromOrSubclassOf(this Type checkType, Type baseType)
    Parameters
    Type Name Description
    Type checkType

    type wanting to check.

    Type baseType

    type wanting to check against.

    Returns
    Type Description
    bool

    True if IsAssignableFrom or IsSubclassOf.

    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)