docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetComponent

    SetComponent(Type, IBuildComponent)

    Set the value of a component type on this context. NOTE: The build configuration asset is not modified.

    Declaration
    public void SetComponent(Type type, IBuildComponent value)
    Parameters
    Type Name Description
    Type type

    Type of the component.

    IBuildComponent value

    Value of the component to set.

    SetComponent<T>(T)

    Set the value of a component type on this context. NOTE: The build configuration asset is not modified.

    Declaration
    public void SetComponent<T>(T value) where T : IBuildComponent
    Parameters
    Type Name Description
    T value

    Value of the component to set.

    Type Parameters
    Name Description
    T

    Type of the component.

    SetComponent(Type)

    Set the value of a component type on this context using an instance created using TypeConstruction utility. NOTE: The build configuration asset is not modified.

    Declaration
    public void SetComponent(Type type)
    Parameters
    Type Name Description
    Type type

    Type of the component.

    SetComponent<T>()

    Set the value of a component type on this context using an instance created using TypeConstruction utility. NOTE: The build configuration asset is not modified.

    Declaration
    public void SetComponent<T>() where T : IBuildComponent
    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)