David Catuhe 5 năm trước cách đây
mục cha
commit
2906c226d6

+ 6 - 0
dist/preview release/babylon.d.ts

@@ -42691,6 +42691,7 @@ declare module BABYLON {
         constructor(_xrSessionManager: WebXRSessionManager);
         /**
          * Enable a feature using its name and a version. This will enable it in the scene, and will be responsible to attach it when the session starts.
+         * If used twice, the old version will be disposed and a new one will be constructed. This way you can re-enable with different configuration.
          *
          * @param featureName the name of the feature to load or the class of the feature
          * @param version optional version to load. if not provided the latest version will be enabled
@@ -42703,6 +42704,7 @@ declare module BABYLON {
         }, version?: number | string, moduleOptions?: any, attachIfPossible?: boolean): IWebXRFeature;
         /**
          * Used to disable an already-enabled feature
+         * The feature will be disposed and will be recreated once enabled.
          * @param featureName the feature to disable
          * @returns true if disable was successful
          */
@@ -43964,6 +43966,8 @@ declare module BABYLON {
         lasterPointerDefaultColor: Color3;
         private static _idCounter;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         private _tmpRay;
         private _controllers;
@@ -44283,6 +44287,8 @@ declare module BABYLON {
          */
         backwardsTeleportationDistance: number;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         /**
          * Is this feature attached

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 113 - 101
dist/preview release/babylon.max.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.max.js.map


+ 12 - 0
dist/preview release/babylon.module.d.ts

@@ -44177,6 +44177,7 @@ declare module "babylonjs/Cameras/XR/webXRFeaturesManager" {
         constructor(_xrSessionManager: WebXRSessionManager);
         /**
          * Enable a feature using its name and a version. This will enable it in the scene, and will be responsible to attach it when the session starts.
+         * If used twice, the old version will be disposed and a new one will be constructed. This way you can re-enable with different configuration.
          *
          * @param featureName the name of the feature to load or the class of the feature
          * @param version optional version to load. if not provided the latest version will be enabled
@@ -44189,6 +44190,7 @@ declare module "babylonjs/Cameras/XR/webXRFeaturesManager" {
         }, version?: number | string, moduleOptions?: any, attachIfPossible?: boolean): IWebXRFeature;
         /**
          * Used to disable an already-enabled feature
+         * The feature will be disposed and will be recreated once enabled.
          * @param featureName the feature to disable
          * @returns true if disable was successful
          */
@@ -45496,6 +45498,8 @@ declare module "babylonjs/Cameras/XR/features/WebXRControllerPointerSelection" {
         lasterPointerDefaultColor: Color3;
         private static _idCounter;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         private _tmpRay;
         private _controllers;
@@ -45830,6 +45834,8 @@ declare module "babylonjs/Cameras/XR/features/WebXRControllerTeleportation" {
          */
         backwardsTeleportationDistance: number;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         /**
          * Is this feature attached
@@ -115158,6 +115164,7 @@ declare module BABYLON {
         constructor(_xrSessionManager: WebXRSessionManager);
         /**
          * Enable a feature using its name and a version. This will enable it in the scene, and will be responsible to attach it when the session starts.
+         * If used twice, the old version will be disposed and a new one will be constructed. This way you can re-enable with different configuration.
          *
          * @param featureName the name of the feature to load or the class of the feature
          * @param version optional version to load. if not provided the latest version will be enabled
@@ -115170,6 +115177,7 @@ declare module BABYLON {
         }, version?: number | string, moduleOptions?: any, attachIfPossible?: boolean): IWebXRFeature;
         /**
          * Used to disable an already-enabled feature
+         * The feature will be disposed and will be recreated once enabled.
          * @param featureName the feature to disable
          * @returns true if disable was successful
          */
@@ -116431,6 +116439,8 @@ declare module BABYLON {
         lasterPointerDefaultColor: Color3;
         private static _idCounter;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         private _tmpRay;
         private _controllers;
@@ -116750,6 +116760,8 @@ declare module BABYLON {
          */
         backwardsTeleportationDistance: number;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         /**
          * Is this feature attached

+ 6 - 0
dist/preview release/documentation.d.ts

@@ -42691,6 +42691,7 @@ declare module BABYLON {
         constructor(_xrSessionManager: WebXRSessionManager);
         /**
          * Enable a feature using its name and a version. This will enable it in the scene, and will be responsible to attach it when the session starts.
+         * If used twice, the old version will be disposed and a new one will be constructed. This way you can re-enable with different configuration.
          *
          * @param featureName the name of the feature to load or the class of the feature
          * @param version optional version to load. if not provided the latest version will be enabled
@@ -42703,6 +42704,7 @@ declare module BABYLON {
         }, version?: number | string, moduleOptions?: any, attachIfPossible?: boolean): IWebXRFeature;
         /**
          * Used to disable an already-enabled feature
+         * The feature will be disposed and will be recreated once enabled.
          * @param featureName the feature to disable
          * @returns true if disable was successful
          */
@@ -43964,6 +43966,8 @@ declare module BABYLON {
         lasterPointerDefaultColor: Color3;
         private static _idCounter;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         private _tmpRay;
         private _controllers;
@@ -44283,6 +44287,8 @@ declare module BABYLON {
          */
         backwardsTeleportationDistance: number;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         /**
          * Is this feature attached

+ 1 - 1
dist/preview release/packagesSizeBaseLine.json

@@ -1 +1 @@
-{"thinEngineOnly":112400,"engineOnly":148513,"sceneOnly":502616,"minGridMaterial":633422,"minStandardMaterial":773461}
+{"thinEngineOnly":112401,"engineOnly":148514,"sceneOnly":502617,"minGridMaterial":633423,"minStandardMaterial":773462}

+ 12 - 0
dist/preview release/viewer/babylon.module.d.ts

@@ -44177,6 +44177,7 @@ declare module "babylonjs/Cameras/XR/webXRFeaturesManager" {
         constructor(_xrSessionManager: WebXRSessionManager);
         /**
          * Enable a feature using its name and a version. This will enable it in the scene, and will be responsible to attach it when the session starts.
+         * If used twice, the old version will be disposed and a new one will be constructed. This way you can re-enable with different configuration.
          *
          * @param featureName the name of the feature to load or the class of the feature
          * @param version optional version to load. if not provided the latest version will be enabled
@@ -44189,6 +44190,7 @@ declare module "babylonjs/Cameras/XR/webXRFeaturesManager" {
         }, version?: number | string, moduleOptions?: any, attachIfPossible?: boolean): IWebXRFeature;
         /**
          * Used to disable an already-enabled feature
+         * The feature will be disposed and will be recreated once enabled.
          * @param featureName the feature to disable
          * @returns true if disable was successful
          */
@@ -45496,6 +45498,8 @@ declare module "babylonjs/Cameras/XR/features/WebXRControllerPointerSelection" {
         lasterPointerDefaultColor: Color3;
         private static _idCounter;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         private _tmpRay;
         private _controllers;
@@ -45830,6 +45834,8 @@ declare module "babylonjs/Cameras/XR/features/WebXRControllerTeleportation" {
          */
         backwardsTeleportationDistance: number;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         /**
          * Is this feature attached
@@ -115158,6 +115164,7 @@ declare module BABYLON {
         constructor(_xrSessionManager: WebXRSessionManager);
         /**
          * Enable a feature using its name and a version. This will enable it in the scene, and will be responsible to attach it when the session starts.
+         * If used twice, the old version will be disposed and a new one will be constructed. This way you can re-enable with different configuration.
          *
          * @param featureName the name of the feature to load or the class of the feature
          * @param version optional version to load. if not provided the latest version will be enabled
@@ -115170,6 +115177,7 @@ declare module BABYLON {
         }, version?: number | string, moduleOptions?: any, attachIfPossible?: boolean): IWebXRFeature;
         /**
          * Used to disable an already-enabled feature
+         * The feature will be disposed and will be recreated once enabled.
          * @param featureName the feature to disable
          * @returns true if disable was successful
          */
@@ -116431,6 +116439,8 @@ declare module BABYLON {
         lasterPointerDefaultColor: Color3;
         private static _idCounter;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         private _tmpRay;
         private _controllers;
@@ -116750,6 +116760,8 @@ declare module BABYLON {
          */
         backwardsTeleportationDistance: number;
         private _observerTracked;
+        private _observerControllerAdded;
+        private _observerControllerRemoved;
         private _attached;
         /**
          * Is this feature attached

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 12 - 12
dist/preview release/viewer/babylon.viewer.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/viewer/babylon.viewer.max.js