I think I might run into a bug regarding the Gameplay Debugger and perception component. I’ve only tested it with AI Sight, using the Third Person Blueprint, in 4.12 doesn’t show. I’ve also tested functionality and it works fine, just doesn’t show on the debugger. Any ideas?
Cheers
Luke
I’ve tested this in 4.14.3 and it seems to be working on my end. Could you provide more context on your setup? A detailed list of steps to reproduce your issue would be great.
This issue has been resolved as of 4.12. Perception is not located in the Editor Preferences, as it is not an experimental feature. You’ll need to add an AI Perception component to your AI Controller, and configure your perception settings on that component. Then, you’ll need to add AI Perception stimuli source components to all actors that you want to be able to be sensed by the AI Character. Keep in mind that pawns are registered as sources by default.
Hey Sean, thanks for reply
I’m sorry for that bad english… i meant that i want to see the sight and hear area in the viewport for bug fixing. Is it possible? i see “how to show ai perception area” youtube videos but the tutorials seemed not be up to date.
I gave this a shot on my end and it seems to be working. Would you mind providing a video of this behavior so I can have a closer look to see what could be going wrong?
Hey Sean L,
I have the problem that sometimes the debug visuals show up but most of the times they don’t. I have to start and stop play constantly and maybe 1 in 10 times the debug visuals show up. I recorded a video to show when it does not show up: UE 4.19 - AI Perception not showing in Debugger - YouTube
As you can see I’m toggling the EQS and Perception options with my numpad but nothing is showing. The AI to the left has the AI Perception sight sense and sometimes I can see the radius of it’s sight but most of the times not. Here is another run when everything is working: UE 4.19 - AI Perception sight is never lost - YouTube
It has been like that for me for several versions already but with the latest it seems worse. Before I got it to show up like every second or third time.
I found out what’s happening. If you close the Debug tool with apostrophe, then press 4 on the num pad, then press apostrophe again to reopen the debug tool, then press 4 on the num pad again, it will work. I believe what is happening is that there is a flip flop or a bool that tells the debug tool whether AI perception is open on the back end but there’s no if statement in front of the 4 key on the num pad saying “only recognize the 4 key input on the num pad when the debug tool is open”.
To simply fix your AI debug tool issue:
Close Debug tool by pressing apostrophe.
Press 4 on the num pad while debug tool is NOT open.
Open debug tool by pressing apostrophe.
Press 4 on the num pad while debug tool IS open.
This fixed my issue. To break it again (not that you want to), press 4 on the num pad while the debug tool is off.
Still an issue in 5.2. Seems hit and miss, just toggling ' until finally the list populates. Toggle once too many and its empty. Any better workaround anyone?