Want to make a explosion on ONE plane with UV-Animations!
I have tried the particle renderer, which can add UV-Animations ON a particel system. But what i need is a simple plane, which will be added via script, with an UV-Animation (tiled based explosion) on it.
Using a imported Plane with a particle renderer on it, wont work! Using the particle system, brings the particle plane, which is reduced to 1, to popup and vanish somehow around the enviroment. beside the fact i dont want to use particle system. just need a simple plane with uv-animations on it, which will be added via script and a lifetime.
O_O ....thnx for any help!
asked Apr 22 '10 at 10:41 AM
I once used this little snippet to animate the UVs of my plane, for a similar purpose:
This was for an 8x8 grid. The 'padding' value determines how much inside the border of each grid cell is actually sampled - to avoid 'bleeding' between animation frames.
It returns a list of two Vector2s. The first is the lower-left corner of the animation frame, the second contains the width and height of the animation frame in UV units.
Another option would be to take a look at the SpriteManager script on the Wiki, which has this functionality built-in.
answered Apr 22 '10 at 11:01 AM