docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Add

    Add<T>(bool)

    Adds a VolumeComponent to this Volume Profile.

    Declaration
    public T Add<T>(bool overrides = false) where T : VolumeComponent
    Parameters
    Type Name Description
    bool overrides

    Specifies whether Unity should automatically override all the settings when you add a VolumeComponent to the Volume Profile.

    Returns
    Type Description
    T

    The instance for the given type that you added to the Volume Profile

    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    Remarks

    You can only have a single component of the same type per Volume Profile.

    See Also
    Add(Type, bool)

    Add(Type, bool)

    Adds a VolumeComponent to this Volume Profile.

    Declaration
    public VolumeComponent Add(Type type, bool overrides = false)
    Parameters
    Type Name Description
    Type type

    A type that inherits from VolumeComponent.

    bool overrides

    Specifies whether Unity should automatically override all the settings when you add a VolumeComponent to the Volume Profile.

    Returns
    Type Description
    VolumeComponent

    The instance created for the given type that has been added to the profile

    Remarks

    You can only have a single component of the same type per Volume Profile.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)