|
@@ -11271,6 +11271,15 @@ declare module "babylonjs/Sprites/spriteManager" {
|
|
|
*/
|
|
|
static Parse(parsedManager: any, scene: Scene, rootUrl: string): SpriteManager;
|
|
|
/**
|
|
|
+ * Creates a sprite manager from a snippet saved in a remote file
|
|
|
+ * @param name defines the name of the sprite manager to create (can be null or empty to use the one from the json data)
|
|
|
+ * @param url defines the url to load from
|
|
|
+ * @param scene defines the hosting scene
|
|
|
+ * @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
|
+ * @returns a promise that will resolve to the new sprite manager
|
|
|
+ */
|
|
|
+ static ParseFromFileAsync(name: Nullable<string>, url: string, scene: Scene, rootUrl?: string): Promise<SpriteManager>;
|
|
|
+ /**
|
|
|
* Creates a sprite manager from a snippet saved by the sprite editor
|
|
|
* @param snippetId defines the snippet to load
|
|
|
* @param scene defines the hosting scene
|
|
@@ -69519,14 +69528,14 @@ declare module "babylonjs/Particles/particleHelper" {
|
|
|
static ExportSet(systems: IParticleSystem[]): ParticleSystemSet;
|
|
|
/**
|
|
|
* Creates a particle system from a snippet saved in a remote file
|
|
|
- * @param name defines the name of the particle system to create
|
|
|
+ * @param name defines the name of the particle system to create (can be null or empty to use the one from the json data)
|
|
|
* @param url defines the url to load from
|
|
|
* @param scene defines the hosting scene
|
|
|
* @param gpu If the system will use gpu
|
|
|
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
|
- * @returns a promise that will resolve to the new particle system
|
|
|
+ * @returns a promise that will resolve to the new particle system
|
|
|
*/
|
|
|
- static ParseFromFileAsync(name: string, url: string, scene: Scene, gpu?: boolean, rootUrl?: string): Promise<IParticleSystem>;
|
|
|
+ static ParseFromFileAsync(name: Nullable<string>, url: string, scene: Scene, gpu?: boolean, rootUrl?: string): Promise<IParticleSystem>;
|
|
|
/**
|
|
|
* Creates a particle system from a snippet saved by the particle system editor
|
|
|
* @param snippetId defines the snippet to load
|
|
@@ -88060,6 +88069,15 @@ declare module BABYLON {
|
|
|
*/
|
|
|
static Parse(parsedManager: any, scene: Scene, rootUrl: string): SpriteManager;
|
|
|
/**
|
|
|
+ * Creates a sprite manager from a snippet saved in a remote file
|
|
|
+ * @param name defines the name of the sprite manager to create (can be null or empty to use the one from the json data)
|
|
|
+ * @param url defines the url to load from
|
|
|
+ * @param scene defines the hosting scene
|
|
|
+ * @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
|
+ * @returns a promise that will resolve to the new sprite manager
|
|
|
+ */
|
|
|
+ static ParseFromFileAsync(name: Nullable<string>, url: string, scene: Scene, rootUrl?: string): Promise<SpriteManager>;
|
|
|
+ /**
|
|
|
* Creates a sprite manager from a snippet saved by the sprite editor
|
|
|
* @param snippetId defines the snippet to load
|
|
|
* @param scene defines the hosting scene
|
|
@@ -143070,14 +143088,14 @@ declare module BABYLON {
|
|
|
static ExportSet(systems: IParticleSystem[]): ParticleSystemSet;
|
|
|
/**
|
|
|
* Creates a particle system from a snippet saved in a remote file
|
|
|
- * @param name defines the name of the particle system to create
|
|
|
+ * @param name defines the name of the particle system to create (can be null or empty to use the one from the json data)
|
|
|
* @param url defines the url to load from
|
|
|
* @param scene defines the hosting scene
|
|
|
* @param gpu If the system will use gpu
|
|
|
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
|
- * @returns a promise that will resolve to the new particle system
|
|
|
+ * @returns a promise that will resolve to the new particle system
|
|
|
*/
|
|
|
- static ParseFromFileAsync(name: string, url: string, scene: Scene, gpu?: boolean, rootUrl?: string): Promise<IParticleSystem>;
|
|
|
+ static ParseFromFileAsync(name: Nullable<string>, url: string, scene: Scene, gpu?: boolean, rootUrl?: string): Promise<IParticleSystem>;
|
|
|
/**
|
|
|
* Creates a particle system from a snippet saved by the particle system editor
|
|
|
* @param snippetId defines the snippet to load
|