Optional
param: AppBaseOptionsReadonly
_modulesOptional
camera?: CameraOptional
container?: HTMLElementOptional
domOptional
scene?: SceneReadonly
moduleReadonly
optionsIndicates whether the engine is destroyed.
Whether the engine is paused.
Set the target frame rate you want to achieve.
It only takes effect when vSyncCount = 0 (ie, vertical synchronization is turned off). The larger the value, the higher the target frame rate, Number.POSITIVE_INFINITY represents the infinite target frame rate.
在vSyncCount被设置为0时才能生效,而当其设置为大于0时,则不生效。 当vSyncCount为1时,游戏帧率会与设备的刷新帧率保持一致,例如一台设备刷新频率是60Hz则,此时其游戏帧率为60FPS 当vSyncCount为2时,游戏帧率会设置为刷新帧率的一半,例如一台设备刷新帧率是60Hz时,则游戏帧率为30FPS
0 means that the vertical synchronization is turned off.
移除监听.
Event name
Optional
fn: FunctionFunction, If is undefined, delete all corresponding event listeners.
增加监听
Event name
Function
This
下帧回调
只监听一次.
Event name
Function
This
事件派发管理