docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HasOptionalComponent

    HasOptionalComponent(BuildContext, Type)

    Determine if an optional Type component is stored in BuildConfiguration. The component Type must exist in the OptionalComponents list.

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

    The BuildContext used by the execution of this BuildStep.

    Type type

    Type of the optional component.

    Returns
    Type Description
    bool

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

    HasOptionalComponent<T>(BuildContext)

    Determine if an optional T component is stored in BuildConfiguration. The component Type must exist in the OptionalComponents list.

    Declaration
    public bool HasOptionalComponent<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 optional component type is found, false otherwise.

    Type Parameters
    Name Description
    T

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