Class VolumeStack | Core RP Library | 7.2.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class VolumeStack

    Holds the state of a Volume blending update. A global stack is available by default in VolumeManager but you can also create your own using CreateStack() if you need to update the manager with specific settings and store the results for later use.

    Inheritance
    Object
    VolumeStack
    Namespace: UnityEngine.Rendering
    Syntax
    public sealed class VolumeStack : IDisposable

    Methods

    Dispose()

    Cleans up the content of this stack. Once a VolumeStack is disposed, it souldn't be used anymore.

    Declaration
    public void Dispose()

    GetComponent(Type)

    Gets the current state of the VolumeComponent of the specified type in the stack.

    Declaration
    public VolumeComponent GetComponent(Type type)
    Parameters
    Type Name Description
    Type type

    The type of VolumeComponent to look for.

    Returns
    Type Description
    VolumeComponent

    The current state of the VolumeComponent of the specified type, or null if the type is invalid.

    GetComponent<T>()

    Gets the current state of the VolumeComponent of type T in the stack.

    Declaration
    public T GetComponent<T>()
        where T : VolumeComponent
    Returns
    Type Description
    T

    The current state of the VolumeComponent of type T in the stack.

    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    In This Article
    • Methods
      • Dispose()
      • GetComponent(Type)
      • GetComponent<T>()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023