|
|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
-import { _decorator, AssetManager, assetManager, Component, find, instantiate, Label, Node, Prefab, sys, screen } from 'cc';
|
|
|
+import { _decorator, AssetManager, assetManager, Component, find, instantiate, Label, Node, Prefab, sys, screen, view, ResolutionPolicy } from 'cc';
|
|
|
import { Config, nav_info } from './NavInfo';
|
|
|
import { UtilsPanel } from './UtilsPanel';
|
|
|
const { ccclass } = _decorator;
|
|
|
@@ -11,6 +11,9 @@ export class MainScene extends Component {
|
|
|
|
|
|
protected onLoad(): void {
|
|
|
// if (sys.isBrowser || sys.isMobile) screen.requestFullScreen()
|
|
|
+ if(!sys.isMobile){
|
|
|
+ view.setResolutionPolicy(ResolutionPolicy.SHOW_ALL);
|
|
|
+ }
|
|
|
UtilsPanel.getAllNeedCom(this, find("Canvas"), true);
|
|
|
nav_info.init();
|
|
|
nav_info.scene = this;
|