Selaa lähdekoodia

Adding getClassName where it was required

David Catuhe 8 vuotta sitten
vanhempi
commit
ab4a861efa
35 muutettua tiedostoa jossa 3410 lisäystä ja 3310 poistoa
  1. 0 38
      canvas2D/tools/canvas2dinspector/README.md
  2. 20 20
      dist/preview release/babylon.core.js
  3. 3151 3134
      dist/preview release/babylon.d.ts
  4. 31 31
      dist/preview release/babylon.js
  5. 81 28
      dist/preview release/babylon.max.js
  6. 31 31
      dist/preview release/babylon.noworker.js
  7. 2 2
      src/Cameras/VR/babylon.vrDeviceOrientationCamera.ts
  8. 1 1
      src/Cameras/VR/babylon.webVRCamera.ts
  9. 2 2
      src/Cameras/babylon.arcRotateCamera.ts
  10. 7 7
      src/Cameras/babylon.camera.ts
  11. 1 1
      src/Cameras/babylon.deviceOrientationCamera.ts
  12. 2 2
      src/Cameras/babylon.followCamera.ts
  13. 1 1
      src/Cameras/babylon.freeCamera.ts
  14. 1 1
      src/Cameras/babylon.gamepadCamera.ts
  15. 8 8
      src/Cameras/babylon.stereoscopicCameras.ts
  16. 1 1
      src/Cameras/babylon.targetCamera.ts
  17. 1 1
      src/Cameras/babylon.touchCamera.ts
  18. 1 1
      src/Cameras/babylon.universalCamera.ts
  19. 4 0
      src/Cameras/babylon.virtualJoysticksCamera.ts
  20. 4 0
      src/Lights/babylon.directionalLight.ts
  21. 4 0
      src/Lights/babylon.hemisphericLight.ts
  22. 4 0
      src/Lights/babylon.light.ts
  23. 4 0
      src/Lights/babylon.pointLight.ts
  24. 4 0
      src/Lights/babylon.spotLight.ts
  25. 4 0
      src/Materials/babylon.material.ts
  26. 4 0
      src/Materials/babylon.multiMaterial.ts
  27. 4 0
      src/Materials/babylon.pbrMaterial.ts
  28. 4 0
      src/Materials/babylon.shaderMaterial.ts
  29. 4 0
      src/Materials/babylon.standardMaterial.ts
  30. 4 0
      src/Mesh/babylon.abstractMesh.ts
  31. 4 0
      src/Mesh/babylon.groundMesh.ts
  32. 4 0
      src/Mesh/babylon.instancedMesh.ts
  33. 4 0
      src/Mesh/babylon.linesMesh.ts
  34. 4 0
      src/Mesh/babylon.mesh.ts
  35. 4 0
      src/babylon.node.ts

+ 0 - 38
canvas2D/tools/canvas2dinspector/README.md

@@ -1,38 +0,0 @@
-# Canvas2D Inspector
-
-![](https://raw.githubusercontent.com/Temechon/canvas2d-inspector/master/screen.jpg)
-
-[The main repo can be found here](https://github.com/Temechon/canvas2d-inspector)
-
-An extension to easily debug your Canvas2D, made with HTML/CSS.
-
-## Usage
-Insert the lib in your project: 
-```
-<script src="c2dinspector.js"></script>
-```
-
-In your code, create a new Inspector by giving it the `BABYLON.Engine`:
-
-```
-new INSPECTOR.Canvas2DInspector(engine); 
-```
-
-A right panel will be created by listing all instances of Canvas2D created in your 
-application.
-
-## Contribute
-
-```
-npm install
-grunt
-```
-
-## Create the lib from source
-
-```
-grunt dist
-```
-The library will be in the `dist` folder.
-
-

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 20 - 20
dist/preview release/babylon.core.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 3151 - 3134
dist/preview release/babylon.d.ts


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 31 - 31
dist/preview release/babylon.js


+ 81 - 28
dist/preview release/babylon.max.js

@@ -9232,6 +9232,9 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Node.prototype.getClassName = function () {
+            return "Node";
+        };
         Object.defineProperty(Node.prototype, "onDispose", {
             set: function (callback) {
                 if (this._onDisposeObserver) {
@@ -10532,6 +10535,9 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        AbstractMesh.prototype.getClassName = function () {
+            return "AbstractMesh";
+        };
         /**
          * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
          */
@@ -11513,6 +11519,9 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Light.prototype.getClassName = function () {
+            return "Light";
+        };
         /**
          * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
          */
@@ -11700,6 +11709,9 @@ var BABYLON;
             _super.call(this, name, scene);
             this.position = position;
         }
+        PointLight.prototype.getClassName = function () {
+            return "PointLight";
+        };
         PointLight.prototype.getAbsolutePosition = function () {
             return this.transformedPosition ? this.transformedPosition : this.position;
         };
@@ -11788,6 +11800,9 @@ var BABYLON;
             this.angle = angle;
             this.exponent = exponent;
         }
+        SpotLight.prototype.getClassName = function () {
+            return "SpotLight";
+        };
         SpotLight.prototype.getAbsolutePosition = function () {
             return this.transformedPosition ? this.transformedPosition : this.position;
         };
@@ -11888,6 +11903,9 @@ var BABYLON;
             this.groundColor = new BABYLON.Color3(0.0, 0.0, 0.0);
             this.direction = direction;
         }
+        HemisphericLight.prototype.getClassName = function () {
+            return "HemisphericLight";
+        };
         HemisphericLight.prototype.setDirectionToTarget = function (target) {
             this.direction = BABYLON.Vector3.Normalize(target.subtract(BABYLON.Vector3.Zero()));
             return this.direction;
@@ -11944,6 +11962,9 @@ var BABYLON;
             this.position = direction.scale(-1);
             this.direction = direction;
         }
+        DirectionalLight.prototype.getClassName = function () {
+            return "DirectionalLight";
+        };
         DirectionalLight.prototype.getAbsolutePosition = function () {
             return this.transformedPosition ? this.transformedPosition : this.position;
         };
@@ -13154,12 +13175,15 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Camera.prototype.getClassName = function () {
+            return "Camera";
+        };
         /**
          * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
          */
         Camera.prototype.toString = function (fullDetails) {
             var ret = "Name: " + this.name;
-            ret += ", type: " + this.getTypeName();
+            ret += ", type: " + this.getClassName();
             if (this.animations) {
                 for (var i = 0; i < this.animations.length; i++) {
                     ret += ", animation[0]: " + this.animations[i].toString(fullDetails);
@@ -13584,7 +13608,7 @@ var BABYLON;
         Camera.prototype.serialize = function () {
             var serializationObject = BABYLON.SerializationHelper.Serialize(this);
             // Type
-            serializationObject.type = this.getTypeName();
+            serializationObject.type = this.getClassName();
             // Parent
             if (this.parent) {
                 serializationObject.parentId = this.parent.id;
@@ -13597,11 +13621,8 @@ var BABYLON;
             serializationObject.ranges = this.serializeAnimationRanges();
             return serializationObject;
         };
-        Camera.prototype.getTypeName = function () {
-            return "Camera";
-        };
         Camera.prototype.clone = function (name) {
-            return BABYLON.SerializationHelper.Clone(Camera.GetConstructorFromName(this.getTypeName(), name, this.getScene(), this.interaxialDistance, this.isStereoscopicSideBySide), this);
+            return BABYLON.SerializationHelper.Clone(Camera.GetConstructorFromName(this.getClassName(), name, this.getScene(), this.interaxialDistance, this.isStereoscopicSideBySide), this);
         };
         Camera.prototype.getDirection = function (localAxis) {
             var result = BABYLON.Vector3.Zero();
@@ -15154,7 +15175,7 @@ var BABYLON;
             this._rigCamTransformMatrix = this._rigCamTransformMatrix.multiply(BABYLON.Matrix.Translation(target.x, target.y, target.z));
             BABYLON.Vector3.TransformCoordinatesToRef(this.position, this._rigCamTransformMatrix, result);
         };
-        TargetCamera.prototype.getTypeName = function () {
+        TargetCamera.prototype.getClassName = function () {
             return "TargetCamera";
         };
         __decorate([
@@ -15337,7 +15358,7 @@ var BABYLON;
             this.inputs.clear();
             _super.prototype.dispose.call(this);
         };
-        FreeCamera.prototype.getTypeName = function () {
+        FreeCamera.prototype.getClassName = function () {
             return "FreeCamera";
         };
         __decorate([
@@ -15460,7 +15481,7 @@ var BABYLON;
             _super.prototype._checkInputs.call(this);
             this.follow(this.lockedTarget);
         };
-        FollowCamera.prototype.getTypeName = function () {
+        FollowCamera.prototype.getClassName = function () {
             return "FollowCamera";
         };
         __decorate([
@@ -15506,7 +15527,7 @@ var BABYLON;
             _super.prototype._checkInputs.call(this);
             this.follow();
         };
-        ArcFollowCamera.prototype.getTypeName = function () {
+        ArcFollowCamera.prototype.getClassName = function () {
             return "ArcFollowCamera";
         };
         return ArcFollowCamera;
@@ -15562,7 +15583,7 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
-        TouchCamera.prototype.getTypeName = function () {
+        TouchCamera.prototype.getClassName = function () {
             return "TouchCamera";
         };
         TouchCamera.prototype._setupInputs = function () {
@@ -16082,7 +16103,7 @@ var BABYLON;
             this.inputs.clear();
             _super.prototype.dispose.call(this);
         };
-        ArcRotateCamera.prototype.getTypeName = function () {
+        ArcRotateCamera.prototype.getClassName = function () {
             return "ArcRotateCamera";
         };
         __decorate([
@@ -19648,6 +19669,9 @@ var BABYLON;
             this.refreshBoundingInfo();
             this._syncSubMeshes();
         }
+        InstancedMesh.prototype.getClassName = function () {
+            return "InstancedMesh";
+        };
         Object.defineProperty(InstancedMesh.prototype, "receiveShadows", {
             // Methods
             get: function () {
@@ -19977,6 +20001,9 @@ var BABYLON;
             configurable: true
         });
         // Methods
+        Mesh.prototype.getClassName = function () {
+            return "Mesh";
+        };
         /**
          * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
          */
@@ -26347,6 +26374,9 @@ var BABYLON;
             }
             return ret;
         };
+        Material.prototype.getClassName = function () {
+            return "Material";
+        };
         Object.defineProperty(Material.prototype, "isFrozen", {
             get: function () {
                 return this.checkReadyOnlyOnce;
@@ -26666,6 +26696,9 @@ var BABYLON;
                 return _this._renderTargets;
             };
         }
+        StandardMaterial.prototype.getClassName = function () {
+            return "StandardMaterial";
+        };
         Object.defineProperty(StandardMaterial.prototype, "useLogarithmicDepth", {
             get: function () {
                 return this._useLogarithmicDepth;
@@ -27448,6 +27481,9 @@ var BABYLON;
             return this.subMaterials[index];
         };
         // Methods
+        MultiMaterial.prototype.getClassName = function () {
+            return "MultiMaterial";
+        };
         MultiMaterial.prototype.isReady = function (mesh) {
             for (var index = 0; index < this.subMaterials.length; index++) {
                 var subMaterial = this.subMaterials[index];
@@ -37548,6 +37584,9 @@ var BABYLON;
             this.generateOctree = false;
             this._worldInverse = new BABYLON.Matrix();
         }
+        GroundMesh.prototype.getClassName = function () {
+            return "GroundMesh";
+        };
         Object.defineProperty(GroundMesh.prototype, "subdivisions", {
             get: function () {
                 return Math.min(this._subdivisionsX, this._subdivisionsY);
@@ -40918,6 +40957,9 @@ var BABYLON;
             options.defines = options.defines || [];
             this._options = options;
         }
+        ShaderMaterial.prototype.getClassName = function () {
+            return "ShaderMaterial";
+        };
         ShaderMaterial.prototype.needAlphaBlending = function () {
             return this._options.needAlphaBlending;
         };
@@ -44748,6 +44790,9 @@ var BABYLON;
             _super.call(this, name, position, scene);
             this.inputs.addVirtualJoystick();
         }
+        VirtualJoysticksCamera.prototype.getClassName = function () {
+            return "VirtualJoysticksCamera";
+        };
         return VirtualJoysticksCamera;
     }(BABYLON.FreeCamera));
     BABYLON.VirtualJoysticksCamera = VirtualJoysticksCamera;
@@ -45357,7 +45402,7 @@ var BABYLON;
             BABYLON.Tools.Warn("requestVRFullscreen is deprecated. call attachControl() to start sending frames to the VR display.");
             //this.getEngine().switchFullscreen(requestPointerlock);
         };
-        WebVRFreeCamera.prototype.getTypeName = function () {
+        WebVRFreeCamera.prototype.getClassName = function () {
             return "WebVRFreeCamera";
         };
         WebVRFreeCamera.prototype.resetToCurrentRotation = function () {
@@ -46749,7 +46794,7 @@ var BABYLON;
             this._quaternionCache = new BABYLON.Quaternion();
             this.inputs.addDeviceOrientation();
         }
-        DeviceOrientationCamera.prototype.getTypeName = function () {
+        DeviceOrientationCamera.prototype.getClassName = function () {
             return "DeviceOrientationCamera";
         };
         DeviceOrientationCamera.prototype._checkInputs = function () {
@@ -46805,7 +46850,7 @@ var BABYLON;
             vrCameraMetrics.compensateDistortion = compensateDistortion;
             this.setCameraRigMode(BABYLON.Camera.RIG_MODE_VR, { vrCameraMetrics: vrCameraMetrics });
         }
-        VRDeviceOrientationFreeCamera.prototype.getTypeName = function () {
+        VRDeviceOrientationFreeCamera.prototype.getClassName = function () {
             return "VRDeviceOrientationFreeCamera";
         };
         return VRDeviceOrientationFreeCamera;
@@ -46821,7 +46866,7 @@ var BABYLON;
             this.setCameraRigMode(BABYLON.Camera.RIG_MODE_VR, { vrCameraMetrics: vrCameraMetrics });
             this.inputs.addVRDeviceOrientation();
         }
-        VRDeviceOrientationArcRotateCamera.prototype.getTypeName = function () {
+        VRDeviceOrientationArcRotateCamera.prototype.getClassName = function () {
             return "VRDeviceOrientationArcRotateCamera";
         };
         return VRDeviceOrientationArcRotateCamera;
@@ -46876,7 +46921,7 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
-        UniversalCamera.prototype.getTypeName = function () {
+        UniversalCamera.prototype.getClassName = function () {
             return "UniversalCamera";
         };
         return UniversalCamera;
@@ -47467,7 +47512,7 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
-        GamepadCamera.prototype.getTypeName = function () {
+        GamepadCamera.prototype.getClassName = function () {
             return "GamepadCamera";
         };
         return GamepadCamera;
@@ -48644,7 +48689,7 @@ var BABYLON;
             this.interaxialDistance = interaxialDistance;
             this.setCameraRigMode(BABYLON.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH, { interaxialDistance: interaxialDistance });
         }
-        AnaglyphFreeCamera.prototype.getTypeName = function () {
+        AnaglyphFreeCamera.prototype.getClassName = function () {
             return "AnaglyphFreeCamera";
         };
         return AnaglyphFreeCamera;
@@ -48657,7 +48702,7 @@ var BABYLON;
             this.interaxialDistance = interaxialDistance;
             this.setCameraRigMode(BABYLON.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH, { interaxialDistance: interaxialDistance });
         }
-        AnaglyphArcRotateCamera.prototype.getTypeName = function () {
+        AnaglyphArcRotateCamera.prototype.getClassName = function () {
             return "AnaglyphArcRotateCamera";
         };
         return AnaglyphArcRotateCamera;
@@ -48670,7 +48715,7 @@ var BABYLON;
             this.interaxialDistance = interaxialDistance;
             this.setCameraRigMode(BABYLON.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH, { interaxialDistance: interaxialDistance });
         }
-        AnaglyphGamepadCamera.prototype.getTypeName = function () {
+        AnaglyphGamepadCamera.prototype.getClassName = function () {
             return "AnaglyphGamepadCamera";
         };
         return AnaglyphGamepadCamera;
@@ -48683,7 +48728,7 @@ var BABYLON;
             this.interaxialDistance = interaxialDistance;
             this.setCameraRigMode(BABYLON.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH, { interaxialDistance: interaxialDistance });
         }
-        AnaglyphUniversalCamera.prototype.getTypeName = function () {
+        AnaglyphUniversalCamera.prototype.getClassName = function () {
             return "AnaglyphUniversalCamera";
         };
         return AnaglyphUniversalCamera;
@@ -48697,7 +48742,7 @@ var BABYLON;
             this.isStereoscopicSideBySide = isStereoscopicSideBySide;
             this.setCameraRigMode(isStereoscopicSideBySide ? BABYLON.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL : BABYLON.Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER, { interaxialDistance: interaxialDistance });
         }
-        StereoscopicFreeCamera.prototype.getTypeName = function () {
+        StereoscopicFreeCamera.prototype.getClassName = function () {
             return "StereoscopicFreeCamera";
         };
         return StereoscopicFreeCamera;
@@ -48711,7 +48756,7 @@ var BABYLON;
             this.isStereoscopicSideBySide = isStereoscopicSideBySide;
             this.setCameraRigMode(isStereoscopicSideBySide ? BABYLON.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL : BABYLON.Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER, { interaxialDistance: interaxialDistance });
         }
-        StereoscopicArcRotateCamera.prototype.getTypeName = function () {
+        StereoscopicArcRotateCamera.prototype.getClassName = function () {
             return "StereoscopicArcRotateCamera";
         };
         return StereoscopicArcRotateCamera;
@@ -48725,7 +48770,7 @@ var BABYLON;
             this.isStereoscopicSideBySide = isStereoscopicSideBySide;
             this.setCameraRigMode(isStereoscopicSideBySide ? BABYLON.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL : BABYLON.Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER, { interaxialDistance: interaxialDistance });
         }
-        StereoscopicGamepadCamera.prototype.getTypeName = function () {
+        StereoscopicGamepadCamera.prototype.getClassName = function () {
             return "StereoscopicGamepadCamera";
         };
         return StereoscopicGamepadCamera;
@@ -48739,7 +48784,7 @@ var BABYLON;
             this.isStereoscopicSideBySide = isStereoscopicSideBySide;
             this.setCameraRigMode(isStereoscopicSideBySide ? BABYLON.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL : BABYLON.Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER, { interaxialDistance: interaxialDistance });
         }
-        StereoscopicUniversalCamera.prototype.getTypeName = function () {
+        StereoscopicUniversalCamera.prototype.getClassName = function () {
             return "StereoscopicUniversalCamera";
         };
         return StereoscopicUniversalCamera;
@@ -53902,6 +53947,9 @@ var BABYLON;
                 return _this._renderTargets;
             };
         }
+        PBRMaterial.prototype.getClassName = function () {
+            return "PBRMaterial";
+        };
         Object.defineProperty(PBRMaterial.prototype, "useLogarithmicDepth", {
             get: function () {
                 return this._useLogarithmicDepth;
@@ -54871,13 +54919,18 @@ var BABYLON;
         }
         /** Creates the inspector window. */
         DebugLayer.prototype._createInspector = function () {
-            new INSPECTOR.Inspector(this._scene);
+            if (!this._inspector) {
+                this._inspector = new INSPECTOR.Inspector(this._scene);
+            } // else nothing to do,; instance is already existing
         };
         DebugLayer.prototype.isVisible = function () {
             return false;
         };
         DebugLayer.prototype.hide = function () {
-            console.warn('');
+            if (this._inspector) {
+                this._inspector.dispose();
+                this._inspector = null;
+            }
         };
         DebugLayer.prototype.show = function () {
             if (typeof INSPECTOR == 'undefined') {

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 31 - 31
dist/preview release/babylon.noworker.js


+ 2 - 2
src/Cameras/VR/babylon.vrDeviceOrientationCamera.ts

@@ -9,7 +9,7 @@ module BABYLON {
         }
 
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "VRDeviceOrientationFreeCamera";
         }
     }
@@ -25,7 +25,7 @@ module BABYLON {
             this.inputs.addVRDeviceOrientation();
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "VRDeviceOrientationArcRotateCamera";
         }
     }

+ 1 - 1
src/Cameras/VR/babylon.webVRCamera.ts

@@ -121,7 +121,7 @@ module BABYLON {
             //this.getEngine().switchFullscreen(requestPointerlock);
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "WebVRFreeCamera";
         }
 

+ 2 - 2
src/Cameras/babylon.arcRotateCamera.ts

@@ -212,7 +212,7 @@
             this.getViewMatrix();
             this.inputs = new ArcRotateCameraInputsManager(this);
             this.inputs.addKeyboard().addMouseWheel().addPointers().addGamepad();
-        }
+        }      
 
         // Cache
         public _initCache(): void {
@@ -588,7 +588,7 @@
             super.dispose();
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "ArcRotateCamera";
         }
     }

+ 7 - 7
src/Cameras/babylon.camera.ts

@@ -147,12 +147,16 @@
             this.position = position;
         }
 
+        public getClassName(): string {
+            return "Camera";
+        }          
+
         /**
          * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
          */
         public toString(fullDetails?: boolean): string {
             var ret = "Name: " + this.name;
-            ret += ", type: " + this.getTypeName();
+            ret += ", type: " + this.getClassName();
             if (this.animations) {
                 for (var i = 0; i < this.animations.length; i++) {
                     ret += ", animation[0]: " + this.animations[i].toString(fullDetails);
@@ -680,7 +684,7 @@
             var serializationObject = SerializationHelper.Serialize(this);
 
             // Type
-            serializationObject.type = this.getTypeName();
+            serializationObject.type = this.getClassName();
 
             // Parent
             if (this.parent) {
@@ -697,12 +701,8 @@
             return serializationObject;
         }
 
-        public getTypeName(): string {
-            return "Camera";
-        }
-
         public clone(name: string): Camera {
-            return SerializationHelper.Clone(Camera.GetConstructorFromName(this.getTypeName(), name, this.getScene(), this.interaxialDistance, this.isStereoscopicSideBySide), this);
+            return SerializationHelper.Clone(Camera.GetConstructorFromName(this.getClassName(), name, this.getScene(), this.interaxialDistance, this.isStereoscopicSideBySide), this);
         }
 
         public getDirection(localAxis:Vector3): Vector3 {

+ 1 - 1
src/Cameras/babylon.deviceOrientationCamera.ts

@@ -11,7 +11,7 @@ module BABYLON {
             this.inputs.addDeviceOrientation();
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "DeviceOrientationCamera";
         }
 

+ 2 - 2
src/Cameras/babylon.followCamera.ts

@@ -72,7 +72,7 @@
             this.follow(this.lockedTarget);
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "FollowCamera";
         }
     }
@@ -100,7 +100,7 @@
             this.follow();
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "ArcFollowCamera";
         }
     }

+ 1 - 1
src/Cameras/babylon.freeCamera.ts

@@ -178,7 +178,7 @@
             super.dispose();
         }
         
-        public getTypeName(): string {
+        public getClassName(): string {
             return "FreeCamera";
         }
     }    

+ 1 - 1
src/Cameras/babylon.gamepadCamera.ts

@@ -33,7 +33,7 @@ module BABYLON {
             super(name, position, scene);
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "GamepadCamera";
         }
     }

+ 8 - 8
src/Cameras/babylon.stereoscopicCameras.ts

@@ -6,7 +6,7 @@
             this.setCameraRigMode(Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH, { interaxialDistance: interaxialDistance });
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "AnaglyphFreeCamera";
         }
     }
@@ -18,7 +18,7 @@
             this.setCameraRigMode(Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH, { interaxialDistance: interaxialDistance });
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "AnaglyphArcRotateCamera";
         }
     }
@@ -30,7 +30,7 @@
             this.setCameraRigMode(Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH, { interaxialDistance: interaxialDistance });
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "AnaglyphGamepadCamera";
         }
     }
@@ -42,7 +42,7 @@
             this.setCameraRigMode(Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH, { interaxialDistance: interaxialDistance });
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "AnaglyphUniversalCamera";
         }
     }
@@ -55,7 +55,7 @@
             this.setCameraRigMode(isStereoscopicSideBySide ? Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL : Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER, { interaxialDistance: interaxialDistance });
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "StereoscopicFreeCamera";
         }
     }
@@ -68,7 +68,7 @@
             this.setCameraRigMode(isStereoscopicSideBySide ? Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL : Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER, { interaxialDistance: interaxialDistance });
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "StereoscopicArcRotateCamera";
         }
     }
@@ -81,7 +81,7 @@
             this.setCameraRigMode(isStereoscopicSideBySide ? Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL : Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER, { interaxialDistance: interaxialDistance });
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "StereoscopicGamepadCamera";
         }
     }
@@ -94,7 +94,7 @@
             this.setCameraRigMode(isStereoscopicSideBySide ? Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL : Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER, { interaxialDistance: interaxialDistance });
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "StereoscopicUniversalCamera";
         }
     }

+ 1 - 1
src/Cameras/babylon.targetCamera.ts

@@ -310,7 +310,7 @@
             Vector3.TransformCoordinatesToRef(this.position, this._rigCamTransformMatrix, result);
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "TargetCamera";
         }
     }

+ 1 - 1
src/Cameras/babylon.touchCamera.ts

@@ -34,7 +34,7 @@ module BABYLON {
             this._setupInputs();
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "TouchCamera";
         }
 

+ 1 - 1
src/Cameras/babylon.universalCamera.ts

@@ -32,7 +32,7 @@ module BABYLON {
             this.inputs.addGamepad();
         }
 
-        public getTypeName(): string {
+        public getClassName(): string {
             return "UniversalCamera";
         }
     }

+ 4 - 0
src/Cameras/babylon.virtualJoysticksCamera.ts

@@ -6,5 +6,9 @@
             super(name, position, scene);
             this.inputs.addVirtualJoystick();
         }
+
+        public getClassName(): string {
+            return "VirtualJoysticksCamera";
+        }
     }
 }

+ 4 - 0
src/Lights/babylon.directionalLight.ts

@@ -29,6 +29,10 @@
             this.direction = direction;
         }
 
+        public getClassName(): string {
+            return "DirectionalLight";
+        }           
+
         public getAbsolutePosition(): Vector3 {
             return this.transformedPosition ? this.transformedPosition : this.position;
         }

+ 4 - 0
src/Lights/babylon.hemisphericLight.ts

@@ -13,6 +13,10 @@
 
             this.direction = direction;
         }
+        
+        public getClassName(): string {
+            return "HemisphericLight";
+        }          
 
         public setDirectionToTarget(target: Vector3): Vector3 {
             this.direction = Vector3.Normalize(target.subtract(Vector3.Zero()));

+ 4 - 0
src/Lights/babylon.light.ts

@@ -94,6 +94,10 @@
             scene.addLight(this);
         }
 
+        public getClassName(): string {
+            return "Light";
+        }        
+
         /**
          * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
          */

+ 4 - 0
src/Lights/babylon.pointLight.ts

@@ -12,6 +12,10 @@
             this.position = position;
         }
 
+        public getClassName(): string {
+            return "PointLight";
+        } 
+
         public getAbsolutePosition(): Vector3 {
             return this.transformedPosition ? this.transformedPosition : this.position;
         }

+ 4 - 0
src/Lights/babylon.spotLight.ts

@@ -26,6 +26,10 @@
             this.exponent = exponent;
         }
 
+        public getClassName(): string {
+            return "SpotLight";
+        }         
+
         public getAbsolutePosition(): Vector3 {
             return this.transformedPosition ? this.transformedPosition : this.position;
         }

+ 4 - 0
src/Materials/babylon.material.ts

@@ -237,6 +237,10 @@
             return ret;
         } 
         
+        public getClassName(): string {
+            return "Material";
+        }
+        
         public get isFrozen(): boolean {
             return this.checkReadyOnlyOnce;
         }

+ 4 - 0
src/Materials/babylon.multiMaterial.ts

@@ -18,6 +18,10 @@
         }
 
         // Methods
+        public getClassName(): string {
+            return "MultiMaterial";
+        }
+
         public isReady(mesh?: AbstractMesh): boolean {
             for (var index = 0; index < this.subMaterials.length; index++) {
                 var subMaterial = this.subMaterials[index];

+ 4 - 0
src/Materials/babylon.pbrMaterial.ts

@@ -508,6 +508,10 @@
             }
         }
 
+        public getClassName(): string {
+            return "PBRMaterial";
+        }
+
         @serialize()
         public get useLogarithmicDepth(): boolean {
             return this._useLogarithmicDepth;

+ 4 - 0
src/Materials/babylon.shaderMaterial.ts

@@ -32,6 +32,10 @@
             this._options = options;
         }
 
+        public getClassName(): string {
+            return "ShaderMaterial";
+        }
+
         public needAlphaBlending(): boolean {
             return this._options.needAlphaBlending;
         }

+ 4 - 0
src/Materials/babylon.standardMaterial.ts

@@ -228,6 +228,10 @@
             }
         }
 
+        public getClassName(): string {
+            return "StandardMaterial";
+        }        
+
         @serialize()
         public get useLogarithmicDepth(): boolean {
             return this._useLogarithmicDepth;

+ 4 - 0
src/Mesh/babylon.abstractMesh.ts

@@ -192,6 +192,10 @@
             scene.addMesh(this);
         }
 
+        public getClassName(): string {
+            return "AbstractMesh";
+        }
+
         /**
          * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
          */

+ 4 - 0
src/Mesh/babylon.groundMesh.ts

@@ -18,6 +18,10 @@
             super(name, scene);
         }
 
+        public getClassName(): string {
+            return "GroundMesh";
+        }        
+
         public get subdivisions(): number {
             return Math.min(this._subdivisionsX, this._subdivisionsY);
         }

+ 4 - 0
src/Mesh/babylon.instancedMesh.ts

@@ -30,6 +30,10 @@
             this._syncSubMeshes();
         }
 
+        public getClassName(): string {
+            return "InstancedMesh";
+        }          
+
         // Methods
         public get receiveShadows(): boolean {
             return this._sourceMesh.receiveShadows;

+ 4 - 0
src/Mesh/babylon.linesMesh.ts

@@ -53,6 +53,10 @@
             this._positionBuffer[VertexBuffer.PositionKind] = null;
         }
 
+        public getClassName(): string {
+            return "LinesMesh";
+        }      
+
         public get material(): Material {
             return this._colorShader;
         }

+ 4 - 0
src/Mesh/babylon.mesh.ts

@@ -194,6 +194,10 @@
         }
 
         // Methods
+        public getClassName(): string {
+            return "Mesh";
+        }   
+
         /**
          * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
          */

+ 4 - 0
src/babylon.node.ts

@@ -66,6 +66,10 @@
             return this._parentNode;
         }
 
+        public getClassName(): string {
+            return "Node";
+        }
+
         /**
         * An event triggered when the mesh is disposed.
         * @type {BABYLON.Observable}