Unity3D编辑模式测试用例热门设置平台
我有以下代码
#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
编写测试案例,并希望将平台选择为unity_android,该如何做到这一点?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用以下行来定义Unity_android预处理程序指令。
从文档中找到在这里
如果您需要删除/不确定该预处理器指令,则可以使用
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