瀏覽代碼

make options optional

Raanan Weber 5 年之前
父節點
當前提交
2b6e76d4b3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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