immersive mode video player

This commit is contained in:
2026-02-24 11:57:25 +02:00
parent 151e1ff82f
commit 441befabd7
2 changed files with 6 additions and 8 deletions
+2 -4
View File
@@ -26,8 +26,6 @@ export default {
}
this.resize();
//engine.setCamera(engine.orthographicCamera)
//engine.setCameraOrthographic();
if (!this.scenario) {
await this.loadScenario();
}
@@ -144,7 +142,7 @@ export default {
await this.expandScenarioData(scene);
engine.dashboard?.loading(0.05);
engine.orbitControls.enableRotate = this.env == 'GameDesigner'
//engine.orbitControls.enableRotate = this.env == 'GameDesigner'
//this is needed cause when mounted canvas has different size
this.resize();
@@ -236,7 +234,7 @@ export default {
$go: this.scene.data.$intro,
skipTransition: true,
playInHud: true,
hideBackground: true
immersive: true
});
engine.activeObjects.add(intro.object);
intro.video.addEventListener('pause',()=>{