This commit is contained in:
@@ -46,6 +46,7 @@ export default{
|
||||
},
|
||||
beforeUnmount() {
|
||||
gameEngine?.stop();
|
||||
gameEngine?.destroy();
|
||||
},
|
||||
watch:{
|
||||
object(n){
|
||||
@@ -55,7 +56,10 @@ export default{
|
||||
if (!this.obj) return;
|
||||
gameEngine = new GameEngine();
|
||||
this.gameEngine = gameEngine;
|
||||
await gameEngine.init(this.$refs.target, {gizmo: true});
|
||||
await gameEngine.init(this.$refs.target, {
|
||||
gizmo: true,
|
||||
xr: true,
|
||||
});
|
||||
await this.loadAsset();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -20,7 +20,7 @@ export default {
|
||||
data(){
|
||||
return {
|
||||
query: {
|
||||
type: { $in: this.$p.objectTypes.filter(t=>!this.type || this.type.includes(t.type)).map(t=>t.value) }
|
||||
type: { '*in': this.$p.objectTypes.filter(t=>!this.type || this.type.includes(t.type)).map(t=>t.value) }
|
||||
},
|
||||
activatorProps:{},
|
||||
dialog: false
|
||||
|
||||
Reference in New Issue
Block a user