NonSerializedShowInInspectorWarningAttributeDrawer

Draws a warning message for non-serialized properties that sports both the SerializeField and the ShowInInspector attribute.

namespace Sirenix.OdinInspector.Editor.Drawers
{
[Sirenix.OdinInspector.Editor.DrawerPriorityAttribute(1, 0, 0)]
public class NonSerializedShowInInspectorWarningAttributeDrawer : OdinAttributeDrawer<ShowInInspectorAttribute>
}

Requirements

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Methods

Return Type Definition Description
bool CanDrawAttributeProperty(InspectorProperty) Determines if the drawer can draw the property.
void DrawPropertyLayout(GUIContent) Draws the warning message and calls the next drawer.
void Initialize() Initializes the drawer.