docs.unity3d.com
Search Results for

    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
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public sealed class VolumeStack : IDisposable

    Properties

    isValid

    Check if the stack is in valid state and can be used.

    Declaration
    public bool isValid { get; }
    Property Value
    Type Description
    bool

    Methods

    Dispose()

    Cleans up the content of this stack. Once a VolumeStack is disposed, it shouldn'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.

    Implements

    IDisposable

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    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)