How to Build Realistic AI Perception and Memory in Unity

Опубликовано: 16 Июль 2026
на канале: git-amend
6,845
352

Building a clean implementation of the Target Tracks Perception System from Game AI Pro. Instead of giving AI agents perfect information, we create a system where they can only perceive what they see and hear — and more importantly, we give them memory that naturally fades over time using envelopes. You'll see how to implement stims, target tracks, and ADSR-style awareness that lets enemies react realistically, stay alert for a while after losing the player, and eventually forget when they can no longer perceive them.

Want to support me? 😀
Buy me a coffee! https://ko-fi.com/adammyhre

🔔 Subscribe for more Unity Tutorials    / @git-amend  

Discord:   / discord  

#unity3d #gamedev #indiedev

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬

0:00 Target Tracks System
1:38 Data Structures
4:38 Perception Hub
5:27 Perception Agent
13:07 Stim Emitter
14:23 Demo

Source code: https://gist.github.com/adammyhre/db6...

More Useful Code:
https://github.com/adammyhre?tab=repo...
Unity Utility Library: https://github.com/adammyhre/Unity-Utils
Lock Inspector Hotkey: https://gist.github.com/adammyhre/475...

Other Recommended Tools (Affiliate Links)
Phantom Navigator - https://assetstore.unity.com/packages...
Ultimate Preview - https://assetstore.unity.com/packages...
Mouse Shortcuts - https://assetstore.unity.com/packages...
Init(args) - https://assetstore.unity.com/packages...
Wingman - https://assetstore.unity.com/packages...
Favorites Window - https://assetstore.unity.com/packages...
Scene Notes - https://assetstore.unity.com/publishe...
Beautify - https://assetstore.unity.com/packages...
Odin - https://assetstore.unity.com/packages...
Odin Validator - https://assetstore.unity.com/packages...
Hot Reload: https://assetstore.unity.com/packages...
Better Hierarchy: https://assetstore.unity.com/packages...
Better Transform: https://assetstore.unity.com/packages...
Better Mesh Filter: https://assetstore.unity.com/packages...
Editor Console Pro: https://assetstore.unity.com/packages...
Any Object Finder: https://assetstore.unity.com/packages...
Kybernetic Tools: https://assetstore.unity.com/publishe...
Sisus Tools: https://assetstore.unity.com/publishe...
Prime Tween - https://assetstore.unity.com/packages...
Rabbit Logger - https://assetstore.unity.com/packages...

Follow me!
https://linktr.ee/gitamend