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.
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.
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).
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!
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.
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.
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.
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++.