How do I display a sector of a circle in decal?
Hi, I'm looking for a way to show an area of effect indicator for skills. The three values I have to display the sector are location (origin of the circle), rotation (facing of indicator), and arc (angle of indicator).
I am using Blueprints.
For context, a sector is like a cone but the outer boundary is circular in nature, as opposed to being a straight line.
I don't need to detect enemies in the sector because I will probably end up using circle detection and then checking the angle between cast origin and target.
I have considered using a sector material, but I'm not sure how I would change the arc.
I have successfully implemented skill range indicators and full circle area of effect indicators, just having trouble with sectors.
Any suggestions or advice would be appreciated. If this is already a function of Unreal Engine, I apologize, as I'm new and can't find any information about it anywhere. I thought it would be a common topic.
Thanks in advance.
Edit: I technically do not need to use a decal, as long as the desired outcome is achieved.
This works, however there are some rough edges, this could be fixed with blur or something else.
answered Dec 08 '17 at 05:19 AM
Use an image like this one, then in the material use an if statement with the white values.
You could use another texture for the circle.
I need to go now but If you need more help comment and I'll help you in a while.
answered Dec 08 '17 at 03:41 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here