docs.unity.cn
    Show / Hide Table of Contents

    Method IsInstance

    IsInstance<T1, T2>()

    Check if one type is an instance of another type.

    Declaration
    public static bool IsInstance<T1, T2>()
    Returns
    Type Description
    Boolean

    Returns true if T2 is a base type of T1.

    Type Parameters
    Name Description
    T1

    Expected base type.

    T2

    Expected child type.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use