Class VolumeComponent
The base class for all the components that can be part of a Volume
Implements
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public class VolumeComponent : ScriptableObject, IApplyRevertPropertyContextMenuItemProvider
Examples
using UnityEngine.Rendering;
[Serializable, VolumeComponentMenuForRenderPipeline("Custom/Example Component")]
public class ExampleComponent : VolumeComponent
{
public ClampedFloatParameter intensity = new ClampedFloatParameter(0f, 0f, 1f);
}
Fields
Name | Description |
---|---|
active | The active state of the set of parameters defined in this class. You can use this to quickly turn on or off all the overrides at once. |
Properties
Name | Description |
---|---|
display |
The name displayed in the component header. If you do not set a name, Unity generates one from the class name automatically. |
parameters | A read-only collection of all the Volume |
Methods
Name | Description |
---|---|
Any |
Returns true if any of the volume properites has been overridden. |
Get |
A custom hashing function that Unity uses to compare the state of parameters. |
Get |
|
Get |
|
On |
Unity calls this method before the object is destroyed. |
On |
Unity calls this method when the object goes out of scope. |
On |
Unity calls this method when it loads the class. |
Override(Volume |
Interpolates a Volume |
Release() | Releases all the allocated resources. |
Set |
Sets the state of all the overrides on this component to a given value. |
Try |
|
Try |