宏定义
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
#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