Confusion with type in ParticleSystemSet.Systems

Type of ParticleSystemSet.Systems is an array of IParticleSystem
While in ParticleSystemSet.Parse, ParticleSystemSet.Systems is treated as ParticleSystem
When I try to get subemitter(to adjust size of the whole particle system set) from ParticleSystemSet.Systems, js tell me it’s wrong.
So I guess ParticleSystemSet.Systems is better to be ParticleSystem.

It can not be as it might also be a GPU based one. You could be sure of it by iterating or filtering the list with elements like this:

system.getClassName() === "ParticleSystem";
1 Like