r/UnityHelp • • Feb 24 '22

Projecting procedural attack telegraph decal on surface

I'm creating an isometric 3d brawler. I'm trying to draw a telegraphing "attack area" effect on the ground (Meshes, not Unity terrain), from an arbitrary polygon (including curved lines.), based on Vector3 points.

I figure I need to use the Unity decal system, but I'm not sure how to generate the area texture procedurally, especially since it needs to match points in 3d space. Here are a few examples of the effect I'm looking for.

/preview/external-pre/hHPH8hxnCOvrj8110ahUH0kDPVfw0_pUPSYk8UrKyg0.jpg?auto=webp&s=bb4d8276df0df9fbc79b3d48cb2ee3452e2ad701

3 Upvotes

3 comments sorted by