amplitude / unity-plugin

Official Amplitude Unity Plugin
https://developers.amplitude.com/docs/unity
MIT License
44 stars 34 forks source link

Wrap iOS post processor in UNITY_IOS. #50

Closed MartinGonzalez closed 3 years ago

MartinGonzalez commented 3 years ago

If you don't have iOS module installed then a compilation error will happen saying

error CS0234: The type or namespace name 'iOS' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

To avoid this issue and that amplitude can be used in Android independently I've wrapped the iOS class with UNITY_IOS define.