Class AttributeDecorator | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class AttributeDecorator

    Base class that wraps a property drawer with attribute defined decorator.

    Inheritance
    Object
    AttributeDecorator
    ColorUsageDecorator
    DelayedDecorator
    MaxDecorator
    MinDecorator
    MinMaxDecorator
    RangeDecorator
    Namespace: Unity.MARS
    Syntax
    public abstract class AttributeDecorator

    Methods

    OnGUI(SerializedProperty, GUIContent, Attribute)

    Called to draw the decorator.

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

    Property to be drawn.

    GUIContent label

    Label of the property

    Attribute attribute

    Attributes being applied to decorator.

    Returns
    Type Description
    Boolean

    Returns 'true' if decorator was applied.

    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