highlight/disable decal under selected unit

hello there
am working on a project where you can select multiple units.
i need a way to highlight the ground under the selected unit and un-highlight when deselect. i tried decals but it looks like there is no way you can remove them when deselect ( ether leave them permanent or specify a life time).
any ideas how to do that

keep in mind i have distorted ground.

check this video when he deselect the unit

Can you set the decal and then just make it visible and hidden as needed?

Alternatively, if you can’t do that to a decal you could create a transparent or emissive material, apply it to a mesh, and then hide/unhide that mesh.

My current setup is using a plane plate with the decal mat under the unit and hide/unhide when needed. But the problem with this approach I can’t use it on non flat ground.
i need to use decals.
so what i did is use deferred decal mat and add decal component to the unit bp. But for some reason it dont show up. I try rotation y=-90. Still cant make it work.

hello
here how i made it work:

1 - make a character bp.
2- go to component tab and add decal component.
3- add the decal material.
4- put the rotation on y = -90.
5- scale the decal don’t leave it defaults 1,1,1 ( this was my problem and why it was not shown)

u can use hide in game as u desire .

have fun :slight_smile: