Class AttributeDecorator | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class AttributeDecorator

    The base abstract class for all attribute decorators.

    Inheritance
    System.Object
    AttributeDecorator
    Namespace: UnityEditor.Rendering.PostProcessing
    Syntax
    public abstract class AttributeDecorator

    Methods

    IsAutoProperty()

    Override this and return false if you want to customize the override checkbox position, else it'll automatically draw it and put the property content in a horizontal scope.

    Declaration
    public virtual bool IsAutoProperty()
    Returns
    Type Description
    System.Boolean

    true if the override checkbox should be automatically put next to the property, false if it uses a custom position

    OnGUI(SerializedProperty, SerializedProperty, GUIContent, Attribute)

    The rendering method called for the custom GUI.

    Declaration
    public abstract bool OnGUI(SerializedProperty property, SerializedProperty overrideState, GUIContent title, Attribute attribute)
    Parameters
    Type Name Description
    SerializedProperty property

    The property to draw the UI for

    SerializedProperty overrideState

    The override checkbox property

    GUIContent title

    The title and tooltip for the property

    System.Attribute attribute

    A reference to the property attribute set on the original field

    Returns
    Type Description
    System.Boolean

    true if the property UI got rendered successfully, false to fallback on the default editor UI for this property

    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