A downloadable tool

Download NowName your own price

WavySprite is an asset for Unity that creates a wave animation for an image.

It creates a quad and allows you to set a texture, a number of horizontal and vertical divisions for it and multiple parameters to control the sine wave. The animation itself is done by a shader, not by a script.

To add a WavySprite object to you scene, go to:
GameObject > 2D Object > WavySprite

Hit play to see the animation. You can adjust parameters from the inspector or from code on the fly.

Check out my other assets!


2017-05-02 - Added support for sorting layers. Works same way as for sprites.

2017-05-11 - Added a button to scale the GameObject to the size of original texture.

2017-10-27 - Added a Tint option that works same way as for sprites.


Published Apr 29, 2017
StatusReleased
CategoryTool
Rating
(4)
AuthorAndrii
Tags2D, animation, asset, Ludum Dare 38, Unity, unity3d, wave, wavy

Download

Download NowName your own price

Click download now to get access to the following files:

WavySprite v1.01.unitypackage 645 kB

Comments

Log in with your itch.io account to leave a comment.

Is there a way to sustain older values of the sine wave on a large horizontal canvas upon dynamically changing  amplitude and frequency?

If you mean that you want to change the values back and forth during gameplay then you can do it with code.

No I mean something like this..

where the earlier values sustains and can be observed later in the graph as if you were just plotting a graph instead of waving flag using the same approach.

Honestly, I don't think it can be done with that shader. I wouldn't know where to start.

(+1)

This is an awesome little tool! It would be great if it supported Sorting Layers as well. Would that be possible with this shader?

(+1)

I don't think so. But I'll look into this. It's an important feature.

Awesome! Thank you! :)

(+1)

I've just added a support for sorting layers. Should be no different from using same properties in sprites.

(+1)

Works perfectly! Thanks for the speedy update :D