How To Change The Color Of A Sprite Renderer’s Material Through Code

For a lot of video games, you will see visual indicators that help relay information to the player. These can be animations that show a player reeling back from the impact of an enemy's attack, or numbers popping up above an enemy's head when you strike them to display the amount of damage they received. These are all used in order to make a smoother feeling game.

And there it is in action!

Hi, my name is Adam Reed and I am a software engineer specializing in Unity and C# development. Feel free to scroll through and check out some of my work!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store