My foremost purpose is to create an explosion impact once I clicked the thing. Subsequently, I searched in Unity Belongings, and located a cool framework known as CartoonFX, which is admittedly okay for me. Cartoon FX – Unity Retailer
I’m utilizing prefab -> CFXR4 Firework 1 Cyan-Purple. Nevertheless, the particles scattered round are default particles, they’re offered by framework itself. I need to change them with my very own particle sprites. Subsequently, the explosion will look extra sensible, as the thing itself is admittedly exploding.
What I attempted?
- I opened the prefab, and its particle impact system. In there, I
enabled Texture Sheet Animation, change the mode to “Sprite” from
“Grid”. I didn’t add a sprite right here, as a result of I need to add the
particle sprite within the script itself, since an object could possibly be
differing kinds, like Pink, Blue and so on. - I attempted to make use of Claude for that, as a result of I couldn’t write it myself.
I’m sorry however I simply wanted to see a working prototype, then I
might repair it later. Nevertheless, it solely gave me unvalid code items
(like there are not any attributes of ParticleSystem that Claude claims).
I have already got a particle sprite, that I load it on the script, known as particleSprites, a Sprite array. Nevertheless, I couldn’t change the default particle sprite of the explosion prefab to my particle. I’m not very conversant in ParticleSystem and framework itself, so I couldn’t guess what to do at this level. I need to maintain the entire different issues similar (how particles scatter round, how they transfer and so on.), however solely change the particle sprite ingredient.
If you happen to can assist me, or present me a means, or a useful resource, I might be glad! The sort of issues actually takes a lot time, and I’m actually trying to find it for some time. Aside from that, I can perceive the code half itself, its OK. Thanks upfront, love you guys.