Class VolumeComponentMenuForRenderPipeline
This attribute allows you to add commands to the Add Override popup menu on Volumes, while also specifying the render pipeline(s) for which the command will be supported.
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Obsolete("VolumeComponentMenuForRenderPipelineAttribute is deprecated. Use VolumeComponentMenu with SupportedOnRenderPipeline instead. #from(2023.1)", false)]
public class VolumeComponentMenuForRenderPipeline : VolumeComponentMenu
Constructors
VolumeComponentMenuForRenderPipeline(string, params Type[])
Creates a new Volume
Declaration
public VolumeComponentMenuForRenderPipeline(string menu, params Type[] pipelineTypes)
Parameters
Type | Name | Description |
---|---|---|
string | menu | The name of the entry in the override list. You can use slashes to create sub-menus. |
Type[] | pipelineTypes | The list of pipeline types that the target class supports. |
Exceptions
Type | Condition |
---|---|
Exception | Thrown when the pipelineTypes is null or the types do not inherit from Render |
Properties
pipelineTypes
The list of pipeline types that the target class supports.
Declaration
public Type[] pipelineTypes { get; }
Property Value
Type | Description |
---|---|
Type[] |