docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HasRequiredComponent

    HasRequiredComponent(BuildContext, Type)

    Determine if a required Type component is stored in BuildConfiguration. The component Type must exist in the RequiredComponents list.

    Declaration
    public bool HasRequiredComponent(BuildContext context, Type type)
    Parameters
    Type Name Description
    BuildContext context

    The BuildContext used by the execution of this BuildStep.

    Type type

    Type of the required component.

    Returns
    Type Description
    bool

    true if the required component type is found, false otherwise.

    HasRequiredComponent<T>(BuildContext)

    Determine if a required T component is stored in BuildConfiguration. The component Type must exist in the RequiredComponents list.

    Declaration
    public bool HasRequiredComponent<T>(BuildContext context) where T : IBuildComponent
    Parameters
    Type Name Description
    BuildContext context

    The BuildContext used by the execution of this BuildStep.

    Returns
    Type Description
    bool

    true if the required component type is found, false otherwise.

    Type Parameters
    Name Description
    T

    Type of the required 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)