Version 2.1.0.0

NonSerializedShowInInspectorWarningAttributeDrawer class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
[DrawerPriority(1, 0, 0)]
public class NonSerializedShowInInspectorWarningAttributeDrawer : OdinAttributeDrawer<ShowInInspectorAttribute>
Draws a warning message for non-serialized properties that sports both the SerializeField and the ShowInInspector attribute.
Inheritance

Constructors

NonSerializedShowInInspectorWarningAttributeDrawer()
public NonSerializedShowInInspectorWarningAttributeDrawer()

Methods

CanDrawAttributeProperty(InspectorProperty)
Determines if the drawer can draw the property.
protected override bool CanDrawAttributeProperty(InspectorProperty property)
Parameters
InspectorProperty property

The property to test.

Returns
System.Boolean

true if the drawer can draw the property; otherwise false.

DrawPropertyLayout(GUIContent)
Draws the warning message and calls the next drawer.
protected override void DrawPropertyLayout(GUIContent label)
Parameters
UnityEngine.GUIContent label

The label for the property.

Initialize()
Initializes the drawer.
protected override void Initialize()
Extension Methods