docs.unity3d.com
    显示 / 隐藏目录

    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.

    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)