Smart Perception Pro - Stealth AI Vision & Hearing
LogicDev
$14.99
$29.99
50%OFF
(no ratings)
Jump AssetStore
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 PlayDemo 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.Videos:Overview: https://youtu.be/5rk-AmZ5jssSetup guide: https://youtu.be/UkQhYxXfWOEDocumentation (English / Japanese):https://github.com/logicdevsupport/asset-docs/blob/main/Unity/Sense_SmartPerception_002/README_en.mdhttps://github.com/logicdevsupport/asset-docs/blob/main/Unity/Sense_SmartPerception_002/README_ja.mdTry 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/426870If you find this asset useful, please consider leaving a review, it really helps!-------------------------Smart Perception Pro は、敵や NPC に「気づき」を持たせるコンポーネントです。敵に PerceptionSensor、プレイヤーに PerceptionTarget を付けるだけで、敵がプレイヤーを見て・聞いて・触れて気づき、警戒度のメーター(Unaware・Suspicious・Alert)が上がります。最後に見た・聞いた場所を覚え、仲間を呼び、プレイヤーが複数いるときは誰を追うかを選びます。結果はプロパティとイベントで受け取れるので、どう動くかはあなたの AI が決めます。敵の移動(追跡・巡回・攻撃)はこのパッケージには含まれません。センサーが「何に気づいたか」を伝え、どう反応するかはあなたの AI が決めます。主な機能:- 一部が隠れた相手も見る視覚: 相手ごとに複数の確認点(足・胸・頭)があります。低い壁の後ろのプレイヤーも一部は見え、見えている割合に応じてメーターが上がります- 中心視野と周辺視野。距離の曲線も使えます(例:「2m 以内なら即 Alert」)- 3段階の警戒度(Unaware・Suspicious・Alert)。保持時間・下がり方・余裕幅があり、状態がちらつきません- 記憶: 見失ったあとも、最後に見た位置と時刻を一定時間覚えています- 聴覚: 1行のコード(PerceptionNoise.Emit)で物音を出せます。距離や壁で弱まります。物音だけで Alert にはなりません- 接触: ぶつかってきた相手には、どの向きからでもすぐ気づきます- 仲間を呼ぶ声: Alert になった敵が近くの仲間を呼び、仲間は最後にプレイヤーを見た場所を見に来ます。声がレベル全体に広がることはありません- 複数のプレイヤー(協力プレイ): 敵ごとに、誰を追うか(一番近い・優先度・メーターが一番高い)を選びます。行ったり来たりしません- 多数の敵: 視覚の判定をフレームに分散します。メーターは毎フレームなめらかに動きます- 状態の変化、見つけた・見失った・忘れた・触れた、物音を聞いた、仲間を呼んだ、追う相手が替わったときの C# イベントと UnityEvent(Inspector でつなげるので、コードは不要です)- デバッグ表示と調整パネル(開発用): 視野、視線、メーター、物音、声を Game ビューに表示し、Play 中にパネルでセンサーを調整できます。リリースビルドからは外れます- どの設定も初期値のままで動きます。2つのコンポーネントを付けて Play するだけですデモシーン: 壁で囲まれた場所で、見張りが巡回・追跡・捜索をします。忍び足で進み、低い壁や高い壁に隠れ、足音や手をたたく音を出し、仲間を呼ぶ様子を見られます。2人のプレイヤーと、公開 API だけで作ったミニマップの見本も試せます。デモは基本図形だけで作っています(外部アセットは含みません)。ストアの画像・動画のキャラクターは Unity の無料の Starter Assets を使っており、このパッケージには含まれません。動画:紹介: https://youtu.be/5rk-AmZ5jss導入の手順: https://youtu.be/UkQhYxXfWOE説明書(日本語): https://github.com/logicdevsupport/asset-docs/blob/main/Unity/Sense_SmartPerception_002/README_ja.md日本語の説明書(README_ja)はパッケージにも入っています。無料版で試せます: Smart Perception Lite には視覚と警戒度のメーターが入っています(クラス・設定・イベントは同じ)。Lite から始めて、あとから Pro に替えられます。Smart Perception Lite: https://assetstore.unity.com/packages/slug/426870気に入っていただけたら、レビューをいただけるととても励みになります。






