mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-06 15:48:37 +08:00
* adjust init process * fix bugs * restructure * tweak * delete useless code * fix ci * support more platform and fix some bugs * mark internal * tweak * add docs * add docs and little adjustment * fix bugs * adjust decorator execute order fix mesh error * fix bugs * revert some change * revert auto-generated code * revert auto-generated code
9 lines
386 B
JavaScript
9 lines
386 B
JavaScript
cc.game.restart = function () {
|
|
};
|
|
|
|
ral.onWindowResize && ral.onWindowResize(function (width, height) {
|
|
// Since the initialization of the creator engine may not take place until after the onWindowResize call,
|
|
// you need to determine whether the canvas already exists before you can call the setCanvasSize method
|
|
cc.game.canvas && cc.view.setCanvasSize(width, height);
|
|
});
|