Class PostProcessAttribute | Post Processing | 2.3.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class PostProcessAttribute

    Use this attribute to associate a PostProcessEffectSettings to a PostProcessEffectRenderer<T> type.

    Inheritance
    Object
    Attribute
    PostProcessAttribute
    Namespace: UnityEngine.Rendering.PostProcessing
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public sealed class PostProcessAttribute : Attribute, _Attribute

    Constructors

    PostProcessAttribute(Type, PostProcessEvent, String, Boolean)

    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 / character to add sub-menus.

    Boolean allowInSceneView

    Should this effect be allowed in the Scene View?

    Fields

    allowInSceneView

    Should this effect be allowed in the Scene View?

    Declaration
    public readonly bool allowInSceneView
    Field Value
    Type Description
    Boolean

    eventType

    The injection point for the effect.

    Declaration
    public readonly PostProcessEvent eventType
    Field Value
    Type Description
    PostProcessEvent

    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

    renderer

    The renderer type to associate with a PostProcessEffectSettings.

    Declaration
    public readonly Type renderer
    Field Value
    Type Description
    Type

    See Also

    PostProcessEffectSettings
    PostProcessEffectRenderer<T>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023