#define UNITY_EDITOR

 #define A


if A
        
Debug.Log("A");

#endif

The compiler chooses android mode.
execute concurrently

#if UNITY_ANDROID
        Debug.Log("UNITY_ANDROID");
#endif
#if UNITY_EDITOR
        Debug.Log("UNITY_EDITOR");
#endif
#

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324838726&siteId=291194637