Default playback interval for 2D animation, in milliseconds.
Zh
2D动画 Animation 的默认播放时间间隔,单位为毫秒。
静态defaultFont
defaultFont:string = "Arial"
En
Default font, default is Arial
Zh
默认文本字体,默认为Arial
静态defaultFontSize
defaultFontSize:number = 12
En
Default text size, default is 12
Zh
默认文本大小,默认为12
静态destroyResourceImmediatelyDefault
destroyResourceImmediatelyDefault:boolean = true
En
Whether to immediately delete resources when the reference parameter is 0. If not immediate deletion, please call DestrotyUnUse
Zh
资源引用参数为0是否立即删除资源,如果不立即删除请调用DestrotyUnUse
静态enableUniformBufferObject
enableUniformBufferObject:boolean = true
En
Whether to enable UniformBuffer
Zh
是否启用UniformBuffer
静态fixedFrames
fixedFrames:boolean = true
En
Whether to use a fixed frame rate for rendering and updates.
When true: Rendering and logic updates are limited to the frame rate defined by Config.FPS. Ensures consistent application speed across different devices.
When false: Updates occur on every requestAnimationFrame callback. Can lead to varying application speeds on different devices.
On iOS, some fonts may not be found. The engine provides font mapping functionality. For example, by default, "黑体" is mapped to "黑体-简". More mappings can be added.
En
Config is used to set some global parameters. If you need to change them, please set them before initializing the engine.
Zh
Config类用于配置一些全局参数。如需更改,请在初始化引擎之前设置。