docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetRequiredComponent

    GetRequiredComponent(BuildContext, Type)

    Get the value of a required Type component from BuildConfiguration. The component Type must exist in the RequiredComponents list.

    Declaration
    public IBuildComponent GetRequiredComponent(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
    IBuildComponent

    The value of the required component.

    GetRequiredComponent<T>(BuildContext)

    Get the value of a required T component from BuildConfiguration. The component Type must exist in the RequiredComponents list.

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

    The BuildContext used by the execution of this BuildStep.

    Returns
    Type Description
    T

    The value of the required component.

    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)