I have following code
#if UNITY_IOS && !UNITY_EDITOR
public static MyPlugin Current = new MyPluginIOS();
#elif UNITY_ANDROID && !UNITY_EDITOR
public static MyPlugin Current = new MyPluginAndroid();
#else
public static MyPlugin Current = new MyPluginEditor();
#endif
I am writing test case and want to select platform As UNITY_ANDROID how can I do this?
You can use the following line to define the UNITY_ANDROID preprocessor directive.
From the Docs found Here
If you need to remove/undefine that preprocessor directive, you can use