Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Is there a recommended way to do footstep marks?

Discussion in 'General Graphics' started by mrCharli3, Aug 25, 2023.

  1. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    961
    I can’t find any decent tutorials on how to add simple footstep marks where the player runs. I’m assuming the best way is a particle system trail, but not quite sure how to create it.

    is the some resources out there I’ve missed that could help or someone here?
     
  2. c0d3_m0nk3y

    c0d3_m0nk3y

    Joined:
    Oct 21, 2021
    Posts:
    581
    I would use decals. You just have to make sure to fade them out and remove them after a while for performance reasons.
     
  3. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    961
    like poolable gameobject with decals spawned using animation triggers?
     
  4. c0d3_m0nk3y

    c0d3_m0nk3y

    Joined:
    Oct 21, 2021
    Posts:
    581
    Gameobjects: Yes
    Poolable: Always a good idea
    Animation Triggers: If you mean animation events, then yes. But there might be other ways to do it (e.g. collision callbacks).

    The more interesting question is how to render the decals. I think, URP and HDRP have them built in. For BiRP there is the not-so-good Projector component. For BiRP, I'd recommend Decalicious from the asset store.
    https://docs.unity3d.com/Manual/visual-effects-decals.html
     
    mrCharli3 likes this.