策略应用方法
策略调用之后的操作
在应用策略之前的操作
Image formats
导演类。
输出错误消息到 Cocos Creator 编辑器的 Console 或运行时页面端的 Console 中。
A JavaScript string containing zero or more substitution strings.
JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.
通过 error id 和必要的参数来获取错误信息。
是否显示 FPS 信息。
输出一条消息到 Cocos Creator 编辑器的 Console 或运行时 Web 端的 Console 中。
A JavaScript string containing zero or more substitution strings.
JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.
设置是否在左下角显示 FPS。
输出警告消息到 Cocos Creator 编辑器的 Console 或运行时 Web 端的 Console 中。
A JavaScript string containing zero or more substitution strings.
JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.
One degree
Position of the FPS (Default: 0,0 (bottom-left corner))
To modify it, in Web engine please refer to CCMacro.js, in JSB please refer to CCConfig.h
If enabled, actions that alter the position property (eg: CCMoveBy, CCJumpBy, CCBezierBy, etc..) will be stacked.
If you run 2 or more 'position' actions at the same time on a node, then end position will be the sum of all the positions.
If disabled, only the last run action will take effect.
If enabled, the texture coordinates will be calculated by using this formula:
- texCoord.left = (rect.x*2+1) / (texture.wide*2);
- texCoord.right = texCoord.left + (rect.width*2-2)/(texture.wide*2);
The same for bottom and top.
This formula prevents artifacts by using 99% of the texture.
The "correct" way to prevent artifacts is by expand the texture's border with the same color by 1 pixel
Affected component:
- cc.TMXLayer
Enabled by default. To disabled set it to 0.
To modify it, in Web engine please refer to CCMacro.js, in JSB please refer to CCConfig.h
Maximum z index value for node
Minimum z index value for node
Oriented automatically
Oriented horizontally
Oriented vertically
PI / 180
!en The image format supported by the engine defaults, and the supported formats may differ in different build platforms and device types. Currently all platform and device support ['.webp', '.jpg', '.jpeg', '.bmp', '.png'], ios mobile platform !zh 引擎默认支持的图片格式,支持的格式可能在不同的构建平台和设备类型上有所差别。 目前所有平台和设备支持的格式有 ['.webp', '.jpg', '.jpeg', '.bmp', '.png']. The iOS mobile platform also supports the PVR format。
The fullscreen API provides an easy way for web content to be presented using the user's entire screen. It's invalid on safari, QQbrowser and android browser
Automatically request full screen with a touch/click event
exit the full mode.
return true if it's full now.
change the screen to full mode.
Generated using TypeDoc
!en Emit when design resolution changed. !zh 当设计分辨率改变时发送。
ContainerStrategy