Raitch Posted March 16, 2017 Share Posted March 16, 2017 Hello, I have been trying to make sense of the Particle System for a while now. Basically every time a projectile is shot, I'm putting up a ParticleSystem for a splash effect. This works maybe 10 times, but then no sprites at all is created. The function is the same, I have even tried recycling the Particle System with stop/start so no more than 8 are created. I tried to use clone, but it complains that the texture is undefined. I looked into the custom function and it seems the recycle function stops running. Can I reset/recycle all particles somehow? What determines if a sprite is shown or not from the Particle System? Looking from the documentations I don't get much wiser. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 16, 2017 Share Posted March 16, 2017 Hello, do you mind creating a small PG to repro the issue? Quote Link to comment Share on other sites More sharing options...
Raitch Posted March 16, 2017 Author Share Posted March 16, 2017 Trying to recreate the issue in PG I realised that the texture might get removed upon dispose. On most places it doesn't, but it seems as if that was the behavior on ParticleSystem. Instead of using a global texture I cloned it for each case of Particle System and it solved the issue. Is removing texture intended? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 17, 2017 Share Posted March 17, 2017 If you dispose a material textures are also disposed. So yes it is intended. Perhaps I missed something but where did you see a place where you dispose an object and attached textures are not disposed? (I need to fix it if this is the case :)) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.