# How do I display a sector of a circle in decal?

**URL:** <https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702>\
**Category:** Rendering\
**Tags:** unreal-engine, Decals, UE4, Blueprint, question\
**Created:** [December 8, 2017, 2:39am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702 "2017-12-08T02:39:23Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_43c3993a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43c3993a](https://forums.unrealengine.com/u/anonymous_user_43c3993a)\
**Post date:** [December 8, 2017, 2:39am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/1 "2017-12-08T02:39:23Z")

</div>

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.

Reference:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/a/57a47f2687dd12041bc2c868222832f3a5319ebb.png) ](https://doc-0s-68-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/pu5rnvuttapcar7it76sd6ubbl6q0v1r/1682308125000/03628161264412545907/*/1-0bqyW8n-lpu9cf6yqsf1LMMx6G4nGJ_?uuid=e43f2894-2d12-462f-b94e-068794614e61)

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.

---

<div class="post-metadata">

**Author:** ![Goanna7007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Goanna7007](https://forums.unrealengine.com/u/Goanna7007)\
**Post date:** [December 8, 2017, 3:41am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/2 "2017-12-08T03:41:04Z")

</div>

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.

![222988-help2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/a/8aa2dea1be733c007fd83f20d45bc2e939e4943a.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43c3993a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43c3993a](https://forums.unrealengine.com/u/anonymous_user_43c3993a)\
**Post date:** [December 8, 2017, 3:46am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/3 "2017-12-08T03:46:00Z")

</div>

Wow, nice creative solution! Conceptually I understand what you mean but I don’t know how to implement it. I’ll give it a shot and let you know how it goes. If I haven’t followed up when you return please assume that I haven’t figured it out.

Edit: Got it working! All I need to do now is somehow pass in the threshold.

Edit 2: Got the threshold passed in. Working on angle calculations. Seems like the image you provided isn’t linear. Any idea how I could generate a linear version of what you posted?

---

<div class="post-metadata">

**Author:** ![Goanna7007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Goanna7007](https://forums.unrealengine.com/u/Goanna7007)\
**Post date:** [December 8, 2017, 5:19am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/4 "2017-12-08T05:19:42Z")

</div>

This works, however there are some rough edges, this could be fixed with blur or something else.

 ![222995-help.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/9/579099a9da34c7c93d5355c4d16fdd83d0cc2117.png)

 ![222994-radial.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/3/fc3e8d9d2c760cb976f6fefe7c3ea97b7d1810d5.jpeg)

 ![222993-conical.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/4/5a43aa07bd0bcf5e2867a55b90a662dc629fcbd3.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43c3993a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43c3993a](https://forums.unrealengine.com/u/anonymous_user_43c3993a)\
**Post date:** [December 8, 2017, 5:28am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/5 "2017-12-08T05:28:46Z")

</div>

Thanks, yeah that’s how I ended up implementing it. Again though, the gradient isn’t linear 0-255. The angle and 0-1 inputs can’t be linearly mapped. Look at the resulting angle difference between param = 0.1 and param = 0. Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![Goanna7007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Goanna7007](https://forums.unrealengine.com/u/Goanna7007)\
**Post date:** [December 8, 2017, 5:53am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/6 "2017-12-08T05:53:48Z")

</div>

oh, ok.  
I just did the same thing mathematically and works well.

 ![222998-help2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/c/3bccd69d5ab672981d55f0ec4fddf6a34021ac71.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43c3993a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43c3993a](https://forums.unrealengine.com/u/anonymous_user_43c3993a)\
**Post date:** [December 8, 2017, 6:08am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/7 "2017-12-08T06:08:47Z")

</div>

Quick question, what’s TexCood?

---

<div class="post-metadata">

**Author:** ![Goanna7007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Goanna7007](https://forums.unrealengine.com/u/Goanna7007)\
**Post date:** [December 8, 2017, 6:25am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/8 "2017-12-08T06:25:24Z")

</div>

That is the uv coordinate, so the center of the UV has a TexCord of (0.5,0.5)

---

<div class="post-metadata">

**Author:** ![Goanna7007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Goanna7007](https://forums.unrealengine.com/u/Goanna7007)\
**Post date:** [December 8, 2017, 6:32am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/9 "2017-12-08T06:32:30Z")

</div>

Made the input param linear and degrees

 ![222999-help3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/1/c011d28aaa8d45a877577ba08c8044d9c0f510d8.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43c3993a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43c3993a](https://forums.unrealengine.com/u/anonymous_user_43c3993a)\
**Post date:** [December 8, 2017, 6:47am UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/10 "2017-12-08T06:47:58Z")

</div>

Edit: Sorry didn’t see your linear + degrees stuff above. You are doing God’s work, the hero that we have, not the hero that we deserve!

All fixed man, you’re the best!

---

<div class="post-metadata">

**Author:** ![Goanna7007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Goanna7007](https://forums.unrealengine.com/u/Goanna7007)\
**Post date:** [December 8, 2017, 4:25pm UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/11 "2017-12-08T16:25:15Z")

</div>

![222999-help3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/1/c011d28aaa8d45a877577ba08c8044d9c0f510d8.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3ad9ae12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3ad9ae12](https://forums.unrealengine.com/u/anonymous_user_3ad9ae12)\
**Post date:** [December 13, 2020, 5:47pm UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/12 "2020-12-13T17:47:00Z")

</div>

Thanks to everyone on this thread! It really helped me! Just one question: which scalar-or-whatever controls the radius of the circle?

---

<div class="post-metadata">

**Author:** ![ismilawd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ismilawd](https://forums.unrealengine.com/u/ismilawd)\
**Post date:** [March 21, 2024, 2:51pm UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/13 "2024-03-21T14:51:24Z")

</div>

Add center offset, incase of using for annual sector shape.

 ![Screenshot 2024-03-21 044712](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/f/bdf3686cd951e5c3936956cc6121e8bda95e8d1c.png)

---

<div class="post-metadata">

**Author:** ![RafigRzayev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RafigRzayev](https://forums.unrealengine.com/u/RafigRzayev)\
**Post date:** [August 6, 2024, 3:37pm UTC](https://forums.unrealengine.com/t/how-do-i-display-a-sector-of-a-circle-in-decal/411702/14 "2024-08-06T15:37:38Z")

</div>

How do modify radius?
