I’ve got custom property drawer for MyEnum.
In CustomEditor I need to get new MyEnum value via this custom property drawer.
so, basically, I need something like this:
public override void OnInspectorGUI()
{
...
MyEnum myEnum = MyEnum.DefaultValue;
myEnum = EditorGUILayout.PropertyField(typeof(MyEnum), myEnum); // ?
if (myEnum != MyEnum.DefaultValie) { ... }
}
but I know how to draw default inspector only for Serialized Property of specific Serialized Object…
Is it possible to draw default inspector for standaline value?
Thanks