temp hack for vr display activate issues
This commit is contained in:
10
src/components/hack.js
Normal file
10
src/components/hack.js
Normal file
@@ -0,0 +1,10 @@
|
||||
AFRAME.registerComponent('hack', {
|
||||
play: function () {
|
||||
setTimeout(() => {
|
||||
this.el.sceneEl.exitVR();
|
||||
setTimeout(() => {
|
||||
this.el.sceneEl.enterVR();
|
||||
}, 100);
|
||||
}, 250);
|
||||
}
|
||||
});
|
||||
@@ -42,6 +42,7 @@
|
||||
debug-controller
|
||||
debug-song-time
|
||||
debug-state
|
||||
hack
|
||||
gpu-preloader
|
||||
{% if DEBUG_INSPECTOR %}
|
||||
inspector="url: http://localhost:3333/dist/aframe-inspector.js"
|
||||
|
||||
Reference in New Issue
Block a user