|
@@ -448,9 +448,11 @@ A corresponding `THREE.Ray`.
|
448
|
448
|
|
449
|
449
|
## Events
|
450
|
450
|
|
|
451
|
+The events below are emitted on the scene.
|
|
452
|
+
|
451
|
453
|
### arstarted
|
452
|
454
|
|
453
|
|
-This event is emitted on the scene when the main loop of the AR scene is set up, just after the AR session starts.
|
|
455
|
+The main loop of the AR scene has been set up. This takes place just after the AR session starts.
|
454
|
456
|
|
455
|
457
|
*Since:* 0.4.2. Previously, this event was called *ar-started*.
|
456
|
458
|
|
|
@@ -466,4 +468,26 @@ The AR session has ended.
|
466
|
468
|
|
467
|
469
|
**Details**
|
468
|
470
|
|
469
|
|
-* `ar: object`. A reference to the [ar](#ar) system.
|
|
471
|
+* `ar: object`. A reference to the [ar](#ar) system.
|
|
472
|
+
|
|
473
|
+### artargetfound
|
|
474
|
+
|
|
475
|
+An image target has been found.
|
|
476
|
+
|
|
477
|
+*Since:* 0.4.2
|
|
478
|
+
|
|
479
|
+**Details**
|
|
480
|
+
|
|
481
|
+* `referenceImage: ReferenceImage`. The [reference image](reference-image.md) that is linked to the target.
|
|
482
|
+* `ar: object`. A reference to the [ar](#ar) system.
|
|
483
|
+
|
|
484
|
+### artargetlost
|
|
485
|
+
|
|
486
|
+An image target has been lost.
|
|
487
|
+
|
|
488
|
+*Since:* 0.4.2
|
|
489
|
+
|
|
490
|
+**Details**
|
|
491
|
+
|
|
492
|
+* `referenceImage: ReferenceImage`. The [reference image](reference-image.md) that is linked to the target.
|
|
493
|
+* `ar: object`. A reference to the [ar](#ar) system.
|