Browse Source

make options optional

Raanan Weber 5 years ago
parent
commit
2b6e76d4b3
1 changed files with 1 additions and 1 deletions
  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