question

agamedev avatar image
agamedev asked

Must check for Android preprocessor directive inside the Unity SDK

Your Unity SDK classes must all include a check for [b]#if UNITY_ANDROID[/b] when using Android only objects within Unity. Virtually all developers use Unity for both iOS and Android. When we switch the platform to iOS your SDK throws out a large number of errors that have to be patched with this check.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Agamedev Thank you for your valuable feedback. I have forwarded this to the concerned team.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Agamedev, We would add preprocess check in all the sdk classes in the coming version. Thanks for the suggestion.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.