Aframe - Call Aframe Function From Another Javascript File
I'm trying to turn positional tracking off, and I believe that this function in the aframe code is what I'm after: checkHasPositionalTracking(); However, in my second js file (whic
Solution 1:
You need to call it with full reference to the window.AFRAME browser global, so use AFRAME.utils.device.checkHasPositionalTracking ()
in your code to access it.
Post a Comment for "Aframe - Call Aframe Function From Another Javascript File"