Raanan Weber 5 年之前
父節點
當前提交
100da08881
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Inputs/scene.inputManager.ts

+ 2 - 1
src/Inputs/scene.inputManager.ts

@@ -125,8 +125,9 @@ export class InputManager {
     /**
      * When using more than one pointer (for example in XR) you can get the mesh under the specific pointer
      * @param pointerId the pointer id to use
+     * @returns The mesh under this pointer id or null if not found
      */
-    public getMeshUnderPointerByPointerId(pointerId: number) {
+    public getMeshUnderPointerByPointerId(pointerId: number): Nullable<AbstractMesh> {
         return this._meshUnderPointerId[pointerId];
     }