Version 2.1.0.0

OdinSerializeAttributeWarningDrawer class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
[DrawerPriority(1000, 0, 0)]
public sealed class OdinSerializeAttributeWarningDrawer : OdinAttributeDrawer<OdinSerializeAttribute>

When first learning to use the Odin Inspector, it is common for people to misunderstand the OdinSerialize attribute, and use it in places where it does not achive the deceired goal.

This drawer will display a warning message if the OdinSerialize attribute is potentially used in such cases.

Inheritance

Constructors

OdinSerializeAttributeWarningDrawer()
public OdinSerializeAttributeWarningDrawer()

Methods

DrawPropertyLayout(GUIContent)
Draws The Property.
protected override void DrawPropertyLayout(GUIContent label)
Parameters
UnityEngine.GUIContent label

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.