Przeglądaj źródła

make options optional

Raanan Weber 5 lat temu
rodzic
commit
2b6e76d4b3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/Cameras/XR/webXRDefaultExperience.ts

+ 1 - 1
src/Cameras/XR/webXRDefaultExperience.ts

@@ -73,7 +73,7 @@ export class WebXRDefaultExperience {
      * @param options options for basic configuration
      * @returns resulting WebXRDefaultExperience
      */
-    public static CreateAsync(scene: Scene, options: WebXRDefaultExperienceOptions) {
+    public static CreateAsync(scene: Scene, options: WebXRDefaultExperienceOptions = {}) {
         var result = new WebXRDefaultExperience();
 
         // Create base experience