美文网首页Unity
unity编译时判断系统

unity编译时判断系统

作者: normidar | 来源:发表于2018-05-02 17:01 被阅读2次
#if UNITY_EDITOR  
        platform = "unity编辑模式";  
#elif UNITY_XBOX360  
       platform="XBOX360平台";  
#elif UNITY_IPHONE  
       platform="IPHONE平台";  
#elif UNITY_ANDROID  
       platform="ANDROID平台";  
#elif UNITY_STANDALONE_OSX  
       platform="OSX平台(mac)";  
#elif UNITY_STANDALONE_WIN  
       platform="Windows平台";  
#endif

当选择#elif UNITY_STANDALONE时通配pc端

相关文章

网友评论

    本文标题:unity编译时判断系统

    本文链接:https://www.haomeiwen.com/subject/ckmcrftx.html