babylonjs-gui 5.0.0-rc.1 → 5.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -755,9 +755,11 @@ declare module "babylonjs-gui/2D/advancedDynamicTexture" {
755
755
  * @param supportPointerMove defines a boolean indicating if the texture must capture move events (true by default)
756
756
  * @param onlyAlphaTesting defines a boolean indicating that alpha blending will not be used (only alpha testing) (false by default)
757
757
  * @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
758
+ * @param materialSetupCallback defines a custom way of creating and seting up the material on the mesh
758
759
  * @returns a new AdvancedDynamicTexture
759
760
  */
760
- static CreateForMesh(mesh: AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean, invertY?: boolean): AdvancedDynamicTexture;
761
+ static CreateForMesh(mesh: AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean, invertY?: boolean, materialSetupCallback?: (mesh: AbstractMesh, uniqueId: string, texture: AdvancedDynamicTexture, onlyAlphaTesting: boolean) => void): AdvancedDynamicTexture;
762
+ private static _CreateMaterial;
761
763
  /**
762
764
  * Creates a new AdvancedDynamicTexture in projected mode (ie. attached to a mesh) BUT do not create a new material for the mesh. You will be responsible for connecting the texture
763
765
  * @param mesh defines the mesh which will receive the texture
@@ -7938,9 +7940,11 @@ declare module BABYLON.GUI {
7938
7940
  * @param supportPointerMove defines a boolean indicating if the texture must capture move events (true by default)
7939
7941
  * @param onlyAlphaTesting defines a boolean indicating that alpha blending will not be used (only alpha testing) (false by default)
7940
7942
  * @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
7943
+ * @param materialSetupCallback defines a custom way of creating and seting up the material on the mesh
7941
7944
  * @returns a new AdvancedDynamicTexture
7942
7945
  */
7943
- static CreateForMesh(mesh: BABYLON.AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean, invertY?: boolean): AdvancedDynamicTexture;
7946
+ static CreateForMesh(mesh: BABYLON.AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean, invertY?: boolean, materialSetupCallback?: (mesh: BABYLON.AbstractMesh, uniqueId: string, texture: AdvancedDynamicTexture, onlyAlphaTesting: boolean) => void): AdvancedDynamicTexture;
7947
+ private static _CreateMaterial;
7944
7948
  /**
7945
7949
  * Creates a new AdvancedDynamicTexture in projected mode (ie. attached to a mesh) BUT do not create a new material for the mesh. You will be responsible for connecting the texture
7946
7950
  * @param mesh defines the mesh which will receive the texture
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "babylonjs-gui",
6
6
  "description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.",
7
- "version": "5.0.0-rc.1",
7
+ "version": "5.0.0-rc.2",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "babylonjs": "5.0.0-rc.1"
31
+ "babylonjs": "5.0.0-rc.2"
32
32
  },
33
33
  "engines": {
34
34
  "node": "*"