Browse Source

Change example

customisations
alemart 7 months ago
parent
commit
c08f0727da
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      docs/api/plugin-aframe.md

+ 6
- 1
docs/api/plugin-aframe.md View File

@@ -334,7 +334,7 @@ AFRAME.registerComponent('my-component', {
334 334
 
335 335
     tick()
336 336
     {
337
-        const ar = this.el.sceneEl.systems.ar;
337
+        const ar = this.ar;
338 338
         const session = ar.session;
339 339
 
340 340
         // ...
@@ -342,6 +342,11 @@ AFRAME.registerComponent('my-component', {
342 342
 
343 343
     // ...
344 344
 
345
+    get ar()
346
+    {
347
+        return this.el.sceneEl.systems.ar;
348
+    }
349
+
345 350
 });
346 351
 ```
347 352
 

Loading…
Cancel
Save