0
点赞
收藏
分享

微信扫一扫

cocoscreator CC_DEBUG/CC_JSB...定义说明

回望这一段人生 2022-03-21 阅读 115
cocos2d

 

/** 
 * Running in the editor. 
 * 在编辑器中运行
 */
declare const CC_EDITOR: boolean;
/** 
 * Preview in browser or simulator. 
 * 在浏览器或模拟器中预览
 */
declare const CC_PREVIEW: boolean;
/** 
 * Running in the editor or preview. 
 * 在编辑器或预览中运行
 */
declare const CC_DEV: boolean;
/** 
 * Running in the editor or preview, or build in debug mode.
 * 在编辑器或预览中运行,或在调试模式下生成
 */
declare const CC_DEBUG: boolean;
/** 
 * Running in published project. 
 * 在已发布的项目中运行
 */
declare const CC_BUILD: boolean;
/** 
 * Running in native platforms (mobile app, desktop app, or simulator).
 * 在本机平台(移动应用程序、桌面应用程序或模拟器)上运行
 */
declare const CC_JSB: boolean;
/** 
 * Running in runtime environments. 
 * 在runtime环境中运行
 */
declare const CC_RUNTIME: boolean;
/** 
 * Running in the engine's unit test. 
 * 在引擎的单元测试中运行(未经过确认)
 */
declare const CC_TEST: boolean;
/** 
 * Running in the WeChat Mini Game. 
 * 在微信小游戏中运行
 */
declare const CC_WECHATGAME: boolean;
举报

相关推荐

0 条评论