mage / mage-sdk-unity

MAGE client SDK for Unity
MIT License
2 stars 13 forks source link

BindingFlags and Invoke Member Unity 2017.1 #61

Open nullorvoid opened 7 years ago

nullorvoid commented 7 years ago

Description

In the new upgrade with .Net 4.6 Experimental the BindingFlags in SetupModules will need to be updated to

BindingFlags staticProperty = BindingFlags.InvokeMethod | BindingFlags.GetField | BindingFlags.GetProperty;
BindingFlags publicMethod = BindingFlags.Public | BindingFlags.InvokeMethod | BindingFlags.Instance;

Not sure what changed or whether it is just the experimental version of Unity, but currently this is breaking.