• Editor
  • UV Offset Animation

Can I for exemple, make a waterfall that is a polygon with a texture and after that animate only the texture offset?

Related Discussions
...
  • Đã chỉnh sửa

Hello! I suppose what you want to do is have a waterfall image attachment, create a clipping around it to mask it, then animate the position of the water to simulate it moving. This is how you could do it in Spine PRO.

Clipping - Spine User Guide

Yes, kind of, but it isn't the same, supose there is a river and I make a texture of the water in a straight line, now I create a mesh and distort it to make a curved river, now if I control the uv offset the texture will follow the curve.
Using clip and position I can't achieve the same effect.

Well, you could attempt to animate the mesh, although if you expect it to loop on the corners, it won't, so you'll need to manually make it loopable. Meshes - Spine User Guide

So I supose there is not easy way to animate a seamless loop texture inside a mesh?

I recorded a little test I did in unity, where I animate the offset. In this case is just straight so the way you said will work, but I want something curve that follow the mesh distortion.

I'm sorry, what you're showing in the video is not currently possible. Nice trick though!

Look at Unity's SpriteShape package. It's currently in preview but it would allow you to achieve this really easily. Since you already have the UVs of the material animating, it would simply be a matter of creating a spline, applying that material to it and you are off and running. I have a lot of experience with that package so if you run into any issues I'd be happy to help.

8 ngày sau

Ah! Yes, this can work on something like that, but I want to animate something like that inside a spine animation, but cool tip!

3 tháng sau