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

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.