How can I achieve effect shown on picture below with use of Trail Renderer in 2D game? Is it even possible? I need dotted (dashed) trail behind my object and i can't figure it out.
don't know why stack can't load my images LINK HERE
Why trail renderer? Because I feel this is the right way to do this. Earlier, (Unity ver 5.3) I achieved this using: Mesh Particle Emitter + Particle Animator (Fade) + Particle Renderer, but sometimes it behaves strangely in multiplayer. Particles not always came out from object, sometimes they were offset. Anyway, Unity in ver. 5.5 released new component (TrailRenderer), which I would like to use (if it is possible to accomplish effect I need).
I am looking for efficient ways, so answers like "you can instantiate"dot" every X sec. at position of your moving object" ... Please no.
What I have tried.
I added to my gameobject a child (gameobject) with Trail Renderer. Then I put material into Materials array field.
Material shader currently is set to Mobile/Particles/Additive (I am targeting Mobile devices). Material Texture is:
don't know why stack can't load my images LINK HERE
I've tried different settings to accomplish my needs but with no success.
Trail Renderer -> Texture Mode -> Tile (my gameobject is followed by one dot and line)
Texture Import- > Wrap mode -> Repeat (my gameobject pulls dots without gaps behind instead leaving dots in place it was)
Also i tried different shaders, different Trail Renderer parameters with no success. Most of time, my gameobject is followed by stretched dot, line or dots without gaps which are pulled instead of left in place where object was.