宏定义

2017-09-15  本文已影响10人  晓龙酱
#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
上一篇 下一篇

猜你喜欢

热点阅读