Raanan Weber 4 年之前
父节点
当前提交
6794372565
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/XR/features/WebXRHandTracking.ts

+ 4 - 0
src/XR/features/WebXRHandTracking.ts

@@ -134,6 +134,9 @@ export class WebXRHand implements IDisposable {
      */
     public handPartsDefinition: { [key: string]: number[] };
 
+    /**
+     * Observers will be triggered when the mesh for this hand was initialized.
+     */
     public onHandMeshReadyObservable: Observable<WebXRHand> = new Observable();
 
     /**
@@ -172,6 +175,7 @@ export class WebXRHand implements IDisposable {
         this._scene = trackedMeshes[0].getScene();
         if (this._handMesh && this._rigMapping) {
             this._defaultHandMesh = false;
+            this.onHandMeshReadyObservable.notifyObservers(this);
         } else {
             if (!disableDefaultHandMesh) {
                 this._generateDefaultHandMesh();