Unity中使用自定义宏

#if TEST_t
Debug.Log("test");
#endif

Unity中有专门开启和关闭自定义宏的位置:PlayerSettings-OtherSettings-Configuration-Scripting Define Symbols

猜你喜欢

转载自blog.csdn.net/qq_21743659/article/details/129755942
今日推荐