Class PostProcessAttribute
Use this attribute to associate a PostProcessEffectSettings to a PostProcessEffectRenderer<T> type.
Inherited Members
Namespace: UnityEngine.Rendering.PostProcessing
Assembly: Unity.Postprocessing.Runtime.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class PostProcessAttribute : Attribute
Constructors
PostProcessAttribute(Type, PostProcessEvent, string, bool)
Creates a new attribute.
Declaration
public PostProcessAttribute(Type renderer, PostProcessEvent eventType, string menuItem, bool allowInSceneView = true)
Parameters
Type | Name | Description |
---|---|---|
Type | renderer | The renderer type to associate with a PostProcessEffectSettings |
PostProcessEvent | eventType | The injection point for the effect |
string | menuItem | The menu item name to set for the effect. You can use a |
bool | allowInSceneView | Should this effect be allowed in the Scene View? |
See Also
Fields
allowInSceneView
Should this effect be allowed in the Scene View?
Declaration
public readonly bool allowInSceneView
Field Value
Type | Description |
---|---|
bool |
See Also
eventType
The injection point for the effect.
Declaration
public readonly PostProcessEvent eventType
Field Value
Type | Description |
---|---|
PostProcessEvent |
See Also
menuItem
The menu item name to set for the effect. You can use a /
character to add sub-menus.
Declaration
public readonly string menuItem
Field Value
Type | Description |
---|---|
string |
See Also
renderer
The renderer type to associate with a PostProcessEffectSettings.
Declaration
public readonly Type renderer
Field Value
Type | Description |
---|---|
Type |