Class VolumeRequiresRendererFeatures
Use this attribute to show a warning next to a VolumeComponent's UI if the specified ScriptableRendererFeatures are not added to the active URP Asset's default renderer
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class VolumeRequiresRendererFeatures : Attribute
Constructors
VolumeRequiresRendererFeatures(params Type[])
Creates a new VolumeRequiresRendererFeatures attribute instance.
Declaration
public VolumeRequiresRendererFeatures(params Type[] featureTypes)
Parameters
Type | Name | Description |
---|---|---|
Type[] | featureTypes | The list of required ScriptableRendererFeature types. If any of these types are missing, the VolumeComponent UI shows a warning. |