Explorar o código

make options optional

Raanan Weber %!s(int64=5) %!d(string=hai) anos
pai
achega
2b6e76d4b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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