MethodUtils broke for Android - IL2CPP
PinkPanter opened this issue · comments
Nikita Stangrit commented
#if COMPILE_AOT || UNITY_IOS || UNITY_WSA || UNITY_WP8 || UNITY_WP8_1 || UNITY_WEBGL || UNITY_XBOXONE
Not work on android with IL2CPP backend.
I understand, that it might be Unity problem, becouse COMPILE_AOT shoud be true, but I don't now how to write them, and they will be fix it for years.
I found only this solution
if (PlayerSettings.GetScriptingBackend(BuildTargetGroup.Android) == ScriptingImplementation.IL2CPP)
{
...
}
André "Intentor" Martins commented
Hello, @PinkPanter!
You can set the COMPILE_AOT
define symbol on Player Settings at the Scripting Define Symbols text box.
However, I'll look into it to make it fully compatible with Android IL2CPP!