Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

ParticleSystem serialize problem

$
0
0

1.  these two is missing... both in serialize and parse.

particle.minEmitPower
particle.maxEmitPower

 

2. if i dont have an object emitter but only set a position emitter, 

in serialize:

serializationObject.emitterId = this.emitter.id; //(it will be null).

and in parse:

var emitter = scene.getLastMeshByID(parsedParticleSystem.emitterId); //(null...)

var particleSystem = new ParticleSystem("particles#" + emitter.name, parsedParticleSystem.capacity, scene);

 

problem is emitter.name will be error.

 

 


Viewing all articles
Browse latest Browse all 388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>