Up to now, I've been using UPawnSensingComponent to allow the game AI-controlled characters to see and hear the player and other events in the world. Today, I was browsing through the docs trying to find an answer to something, and noticed UAIPerceptionComponent. Looking at the descriptions of the two classes as well as the properties and functions, I'm having a really hard time understanding what the distinction is between these two components. I notice that AAIController comes with an instance of UAIPerceptionComponent automatically, but UPawnSensingComponent has to be added manually. The former also seems to be a touch more sophisticated, with built-in functionality that goes beyond UPawnSensingComponent, including support for more sensory input besides sight and sound. I don't see any evidence of UPawnSensingComponent being deprecated though.
If anyone has any insight or can demystify these two components for me, I'd appreciate it.
If anyone has any insight or can demystify these two components for me, I'd appreciate it.
Comment