- Home /
How to render partially an animated Sprite ?
Hi,
I would like to make a shoot em up game. And i have some problem to make a laser. Indeed, i have a animation sprite of a laser enough long to cover the screen. But when it should collide an enemy, how can i render the laser sprite partially ? Cutting, the top of the laser. Like in this image http://puu.sh/geKcY/a85eafb981.png
Thank you
Thank you, I tried this shader http://wiki.unity3d.com/index.php/Texture$$anonymous$$ask But when i attach the material to a GameObject with SpriteRenderer, it says "$$anonymous$$aterial uses fixed function shader. It is not compatible with SpriteRenderer.
Your answer
![](https://koobas.hobune.stream/wayback/20220613184654im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Animation System in 4.3 1 Answer
Small video files or sprite sheet animations? 0 Answers
How do I stop sprite animation on last frame? 2 Answers
Shaking Sprite Mechanic/Animation after being hit 0 Answers
Most efficient way to do 2D animation 2 Answers