Creating a Shadow tail for a 2D Character when walking

Hello,

i’ve been trying to figure out how to create a shadows tail for the character when it’s moving. this 12660-s.png might make it easier to understand the idea!!

if you can guide me to a tutorial or some useful link. it would be awesome

Thanks.

This can be done with the Trail Renderer. Create a texture that graduates from solid gray to clear, put it in a shader that supports unlit textures with transparency and add it as the material to the trail renderer.

  • Import settings for the texture should preserve the alpha channel.
  • Shader for the material needs to support the transparency
  • Set the time in the Trail Renderer to around 0.25
  • Attach the trail renderer to an empty game object behind the one you want to show.

Here is a texture to start.

12663-trail.png