07-09-2016, 07:16 AM
Hi,
seems like that's a known issue: https://docs.unity3d.com/Manual/TroubleS...Phone.html (see also here)
According to the docs it works if you switch API Compatibility Level to .NET 2.0 Subset. On the other side it should be possible to add the relevant namespaces to the link.xml provided with Curvy to prevent it being optimized away by Mono.
Edit: Searching the forums I found the following:
"the object you're executing those on is a methodinfo. If the thing you're setting is a Field then you're fine... but if it's a property it's going to puke so you'll need to use GetGetMethod and GetSetMethod and then call Invoke on those to set the value to ensure compatibility cross platform."
Seems like there's a way to code it in a more compatible way. Unfortunately I don't have the option to test that out. If I send you some changed code, would you mind testing it?
Best regards,
Jake
seems like that's a known issue: https://docs.unity3d.com/Manual/TroubleS...Phone.html (see also here)
According to the docs it works if you switch API Compatibility Level to .NET 2.0 Subset. On the other side it should be possible to add the relevant namespaces to the link.xml provided with Curvy to prevent it being optimized away by Mono.
Edit: Searching the forums I found the following:
"the object you're executing those on is a methodinfo. If the thing you're setting is a Field then you're fine... but if it's a property it's going to puke so you'll need to use GetGetMethod and GetSetMethod and then call Invoke on those to set the value to ensure compatibility cross platform."
Seems like there's a way to code it in a more compatible way. Unfortunately I don't have the option to test that out. If I send you some changed code, would you mind testing it?
Best regards,
Jake