Is there a way to clone a particle system, meaning after I create a particle system I want to copy all the data instead of reloading it from a plist file.
Create a value map from the plist file.
Like so:
auto val_map = FileUtils::getInstance()->getValueMapFromFile("particle_system.plist")
And whenever construction particle systems just use create()
followed by initWithDictionary(val_map)
Once we have the ValueMap we can just pass it around to as many new ParticleSystems as we want.
2 Likes
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.