docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateVolumeComponent

    CreateVolumeComponent<T>(VolumeProfile, bool, bool)

    Creates a VolumeComponent in an existing VolumeProfile.

    Declaration
    public static T CreateVolumeComponent<T>(VolumeProfile profile, bool overrides = false, bool saveAsset = true) where T : VolumeComponent
    Parameters
    Type Name Description
    VolumeProfile profile

    The profile to store the new component in.

    bool overrides

    specifies whether to override the parameters in the component or not.

    bool saveAsset

    Specifies whether to save the Profile Asset or not. This is useful when you need to create several components in a row and only want to save the Profile Asset after adding the last one, because saving Assets to disk can be slow.

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    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)