#if UNITY_EDITOR
Debug.Log("Unity Editor");
#elif UNITY_IOS
Debug.Log("Unity iPhone");
#elif UNITY_ANDROID
Debug.Log("Unity Android");
#else
Debug.Log("Any other platform");
#endif
#if UNITY_EDITOR
Debug.Log("Unity Editor");
#elif UNITY_IOS
Debug.Log("Unity iPhone");
#elif UNITY_ANDROID
Debug.Log("Unity Android");
#else
Debug.Log("Any other platform");
#endif
本文标题:宏定义
本文链接:https://www.haomeiwen.com/subject/ossesxtx.html
网友评论