Grab your players’ attention with this pulse effect

Tari Ibaba
Nerd For Tech
Published in
2 min readOct 5, 2021

One useful way to put your users’ focus on a certain visual element in your game (maybe as part of a tutorial or something) is by making the object pulse eagerly, kind of like this:

Which of these buttons do you feel like clicking?

How can you do this using Unity?

Well, we can use DOTween!

DOTween radically simplifies the animation process in Unity. We can accomplish the above effect with just one line of code:

Attach the PulseEffect.cs to any game object you want in the scene and it’ll grab the attraction of your users in no time.

You can see a real-world use-case of this effect in my game Whot Cards. Once an extra turn is available for the user the button promptly starts pulsing.

So there’s one of the ways you can create a pulse effect in Unity.

--

--