docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsComponentInherited

    IsComponentInherited(Type)

    Determine if a component type is inherited from a dependency. Throws if component type is not in UsedComponents list.

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

    The component type.

    Returns
    Type Description
    bool

    true if the component is inherited from dependency, false otherwise.

    IsComponentInherited<T>()

    Determine if a component type is inherited from a dependency. Throws if component type is not in UsedComponents list.

    Declaration
    public bool IsComponentInherited<T>() where T : IBuildComponent
    Returns
    Type Description
    bool

    true if the component is inherited from dependency, false otherwise.

    Type Parameters
    Name Description
    T

    The 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)