Raanan Weber 5 anni fa
parent
commit
100da08881
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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];
     }