r/UnityHelp • u/Mr_FJ • 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.
3
Upvotes
1
u/Bonejob Code Guru Feb 24 '22
You would be better doing this as a shader something like this
https://gamedev.stackexchange.com/questions/182576/draw-animating-grid-with-terrain-deformation-and-variable-colors
There is also Easy Decal on the asset store https://assetstore.unity.com/packages/tools/utilities/easy-decal-22867