# 4.8.1: AI Perception By Affiliation?

**URL:** <https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528>\
**Category:** AI\
**Tags:** Perception, ai-controller, unreal-engine, question\
**Created:** [June 30, 2015, 7:59am UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528 "2015-06-30T07:59:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DamirH](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/damirh/32/906591_2.png) [@DamirH](https://forums.unrealengine.com/u/DamirH)\
**Post date:** [June 30, 2015, 7:59am UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/1 "2015-06-30T07:59:46Z")

</div>

,

When trying to configure the AI Perception component on my controller, the Perception By Affiliation section in each sense is completely blank, so I am unable to configure it at all.

Trying to do it via C++ didn’t yield better results unfortunately.

Am I doing it wrong or is this a bug?

---

<div class="post-metadata">

**Author:** ![happyhorror\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@happyhorror\_1](https://forums.unrealengine.com/u/happyhorror_1)\
**Post date:** [June 30, 2015, 10:17am UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/2 "2015-06-30T10:17:53Z")

</div>

Can you give some example screenshots and describe how reproduce this in raw template project?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [July 2, 2015, 8:30pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/3 "2015-07-02T20:30:28Z")

</div>

Hi ,

Are you looking at the details pane in your blueprint? I pulled it up and this option seems to be directly tied to what sense you are attempting to utilize. Specifically, Affiliation should occur with both Hearing and Sight but is not associated with the other perception types.

---

<div class="post-metadata">

**Author:** ![DamirH](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/damirh/32/906591_2.png) [@DamirH](https://forums.unrealengine.com/u/DamirH)\
**Post date:** [July 3, 2015, 8:19am UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/4 "2015-07-03T08:19:15Z")

</div>

Hey there. I just got into the office, opened up my enemy controller to take a screenshot of the missing dropdown and suddenly it was there. When I wrote this there was just the header but no drop-down arrow to expand the section. I have no idea what caused it to start working properly… Thanks for your time in any case and I’ll make sure to report if it happens again (With screenshots this time).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [July 3, 2015, 2:54pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/5 "2015-07-03T14:54:20Z")

</div>

Hi ,

I’m happy to hear that this isn’t affecting you any longer. I’m going to go ahead and mark this as answered for tracking purposes. If this occurs again please comment back with the updated information and I’ll be happy to take another look!

---

<div class="post-metadata">

**Author:** ![happyhorror\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@happyhorror\_1](https://forums.unrealengine.com/u/happyhorror_1)\
**Post date:** [July 5, 2015, 8:43pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/6 "2015-07-05T20:43:42Z")

</div>

maybe it was caused by creating something and not saving everything, at least in blueprints it usually written on variable detail panel after creation

---

<div class="post-metadata">

**Author:** ![hzn84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hzn84](https://forums.unrealengine.com/u/hzn84)\
**Post date:** [July 6, 2015, 12:08pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/7 "2015-07-06T12:08:57Z")

</div>

I have exactly the same problem on 4.8.1. Unfortunately I haven’t tested it in earlier versions. Please take a look at the screenshot.

Edit: Seems like this is only the case when component is inherited from C++

![49257-affilation.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/d/11df6deebd830d928ac612b39e47d23b744db521.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [July 9, 2015, 2:58pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/8 "2015-07-09T14:58:32Z")

</div>

Hey -

As parabolainteractive pointed out, I was able to reproduce this issue when setting up the component through code. I have submitted a bug report (UE-18378) for investigation. For the time being the best solution would be to set the component up directly through the blueprint editor rather than doing so through code.

Cheers

---

<div class="post-metadata">

**Author:** ![DamirH](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/damirh/32/906591_2.png) [@DamirH](https://forums.unrealengine.com/u/DamirH)\
**Post date:** [July 9, 2015, 3:53pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/9 "2015-07-09T15:53:52Z")

</div>

Hey,

It didn’t even occur to me to mention I was setting it up through code, didn’t think it made any difference. Glad we could help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a7d9c852](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a7d9c852](https://forums.unrealengine.com/u/anonymous_user_a7d9c852)\
**Post date:** [March 10, 2017, 4:57pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/10 "2017-03-10T16:57:50Z")

</div>

Any news to this. I am having the same problem.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [March 10, 2017, 7:16pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/11 "2017-03-10T19:16:45Z")

</div>

Hey -

The report for this issue is still open in our tracking system. You can find the status of the report [hereissues.unrealengine.com/issue/UE-18378](http://hereissues.unrealengine.com/issue/UE-18378) .

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b086c581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b086c581](https://forums.unrealengine.com/u/anonymous_user_2b086c581)\
**Post date:** [May 24, 2017, 12:10pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/12 "2017-05-24T12:10:13Z")

</div>

Not sure if I should submit this as a separate issue, but in 4.15.2 Win7x64 if the AI Perception Component was added in C++, you cannot assign a sense to it. The drop down works but when you click on a sense it still shows “None”. Tried selecting with keyboard as well. No form of input selects the sense. Once I configure the sense in C++ I can edit values in the editor as normal.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [May 24, 2017, 6:43pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/13 "2017-05-24T18:43:54Z")

</div>

Hey -

This issue was to report the Detection by Affiliation field of a Senses Config element. Since it sounds like you are unable to set any elements of the Senses Config array at all, I would advice creating a new post for your issue.

Additionally, when I follow the steps in the issue linked above (UE-18378) which sets up an AI Perception component in code, I am able to set elements of the Senses Config array. If you’re following these steps and cannot set any values, please provide a sample project demonstrating the behavior you’re seeing. If you’re using a different setup, please include the reproduction steps used to help me test on my end.

---

<div class="post-metadata">

**Author:** ![spacebares](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spacebares](https://forums.unrealengine.com/u/spacebares)\
**Post date:** [July 21, 2017, 6:29pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/14 "2017-07-21T18:29:02Z")

</div>

ue4.16.2 still broken

---

<div class="post-metadata">

**Author:** ![intoxicat3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@intoxicat3](https://forums.unrealengine.com/u/intoxicat3)\
**Post date:** [November 14, 2017, 7:04pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/15 "2017-11-14T19:04:20Z")

</div>

4.18 - still broken.

Any chance to fix this issue?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [November 14, 2017, 7:56pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/16 "2017-11-14T19:56:21Z")

</div>

Hey -

We do not have timeframe for when this issue will be addressed. As mentioned below, using the component from within the editor avoids this issue.

---

<div class="post-metadata">

**Author:** ![Gossy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gossy](https://forums.unrealengine.com/u/Gossy)\
**Post date:** [August 23, 2018, 2:41am UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/17 "2018-08-23T02:41:32Z")

</div>

I just happened upon this because I was wondering about it. Another workaround (until an official fix), keeping the Component setup in the C++ code, is to configure it by copy-pasting the struct property into Notepad or similar, modifying the affiliations, then copy-pasting the modified struct back onto the property.

It’s not amazing, but lets you do any other config still in C++.

---

<div class="post-metadata">

**Author:** ![Bitwaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bitwaker](https://forums.unrealengine.com/u/Bitwaker)\
**Post date:** [December 28, 2018, 5:46pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/18 "2018-12-28T17:46:54Z")

</div>

Same problem for me with 4.21.1. The Bug reported is still open.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_edbe8833](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_edbe8833](https://forums.unrealengine.com/u/anonymous_user_edbe8833)\
**Post date:** [December 30, 2018, 8:14pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/19 "2018-12-30T20:14:57Z")

</div>

The bug still is present on 4.19.2, we need a fix for this asap.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_edbe8833](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_edbe8833](https://forums.unrealengine.com/u/anonymous_user_edbe8833)\
**Post date:** [December 30, 2018, 8:16pm UTC](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528/20 "2018-12-30T20:16:00Z")

</div>

The bug still is present on 4.19.2, we need a fix for this asap.

[Next page](https://forums.unrealengine.com/t/4-8-1-ai-perception-by-affiliation/323528.md?page=2)
