Open Edvinas01 opened 1 year ago
Something like this should work
#if UNITY_2021_2_OR_NEWER
static PropertyInfo menuItemsField = typeof(GenericMenu).GetProperty("menuItems",
BindingFlags.NonPublic |
BindingFlags.Instance);
#else
static FieldInfo menuItemsField = typeof(GenericMenu).GetField("menuItems",
BindingFlags.NonPublic |
BindingFlags.Instance);
#endif
in the GenericMenuUtil.cs script. I hope a fix for this can be added.
Versions
2020.3.20f1
.0.3.1
.Repro steps
Exception