docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsComponentInherited

    IsComponentInherited(Type)

    Determine if a Type component is inherited from a dependency.

    Declaration
    public bool IsComponentInherited(Type type)
    Parameters
    Type Name Description
    Type type

    Type of the component.

    Returns
    Type Description
    bool

    IsComponentInherited<T>()

    Determine if a T component is inherited from a dependency.

    Declaration
    public bool IsComponentInherited<T>() where T : TComponent
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T

    Type of the component.

    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)