Smart Perception Pro – Stealth AI Vision & Hearing
Features: - Vision with partial cover: each target has several check points (feet, chest, head). ... - Many enemies: vision tests are spread over frames, while the meter still moves ...
by LogicDev
Price History +
Features:
- PerceptionSensor (enemy), PerceptionTarget (player) and PerceptionNoise (noises) components, namespace LogicDev.Perception
- Vision: view distance, horizontal and vertical view angles, central / peripheral vision, distance factor or distance curve, several check points per target, obstacle layers
- Awareness meter: rise rate, decay delay and rate, Suspicious / Alert thresholds, calm margin
- Memory, hearing (range and wall dampening), touch distance, alert call (range, interval, only while seen)
- Focus mode for several players: Nearest (default), Priority, Awareness, with hold time and switch margin
- Scheduling: vision test interval per sensor and a cap per frame
- Events: OnAwarenessChanged, OnSuspicious, OnAlert, OnCalm, OnTargetSpotted, OnTargetLost, OnTargetForgotten, OnTouched, OnNoiseHeard, OnAlertCall, OnFocusChanged (C# events and UnityEvents)
- Scene-view gizmos; Game-view debug display and tuning panel (Editor and Development Builds only)
- Demo scenes with demo-only scripts (patrol, chase, search, minimap sample; straight-line movement, no pathfinding)
- 3D physics only (raycasts against 3D colliders); 2D physics is not supported
Supported versions: Unity 2022.3 LTS / Unity 6.3 LTS
Render pipelines: Built-in, URP and HDRP (the components use no render-pipeline-specific API; the demo materials switch to the pipeline in use on import)
Input: the components do not depend on any input system; only the demo keys and the debug tools use the Input System package
Supported OS: all platforms supported by Unity (no native code, no platform-specific API). Tested in the Editor on Windows.
Documentation: README in English and Japanese (Markdown and PDF), included in the package.
Moving from Lite: delete the Lite folder (Assets/LogicDevSupport/SmartPerception/) before importing Pro. Your scenes keep working.
Smart Perception Pro is a "notice" component for enemies and NPCs. Add PerceptionSensor to an enemy and PerceptionTarget to the player: the enemy sees, hears and feels the player, raises an awareness meter (Unaware, Suspicious, Alert), remembers where it last saw or heard the player, can call its allies, and, with several players, chooses which one to follow. Your AI reads the result through properties and events and decides what to do.
Moving the enemy (chase, patrol, attack) is not part of this package. The sensor tells your AI what it noticed; your AI decides how to react.
Features:
- Vision with partial cover: each target has several check points (feet, chest, head). A player behind a low wall is still partly visible, and the meter rises with how much of the body is seen
- Central and peripheral vision, plus an optional distance curve (for example "Alert at once within 2 m")
- Awareness meter with three states (Unaware, Suspicious, Alert), with a hold time, a decay and a margin so the state does not flicker
- Memory: the last seen position and time, kept for a set time after the target is lost
- Hearing: one line of code makes a noise (PerceptionNoise.Emit). Weaker with distance and through walls. Noises alone never make an enemy Alert
- Touch: a target that bumps into the enemy is noticed at once, from any direction
- Alert call: an Alert enemy calls nearby allies, who come to look where it last saw the player. Calls never spread through the whole level
- Several players (co-op): each enemy chooses whom to follow (nearest, priority or highest meter), without switching back and forth
- Many enemies: vision tests are spread over frames, while the meter still moves smoothly every frame
- C# events and UnityEvents for state changes, spotted / lost / forgotten / touched, noises heard, alert calls and a change of the followed target (wire them up in the Inspector, no code needed)
- Debug display and tuning panel (development only): view cones, sight lines, meters, noises and calls in the Game view, and a panel to tune the sensors while playing. Removed from release builds
- Every setting works with its default value: add two components and press Play
Demo scene: guards patrol, chase and search a walled area. Sneak, hide behind low and tall walls, make footsteps and claps, watch alert calls, and try two players with a minimap sample built from the public API. Built from primitive shapes only (no external assets). The character shown in the store media uses Unity's free Starter Assets, which are not included in this package.
Try it for free: Smart Perception Lite has the vision and the awareness meter (same classes, settings and events), so you can start with Lite and move to Pro later.
Smart Perception Lite: https://assetstore.unity.com/packages/slug/426870
If you find this asset useful, please consider leaving a review, it really helps!