Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Integration
1/6
Target Scanner is a versatile tool that allows Player/AI in Unity games to detect other in-game objects in real time, improving gameplay functionality and enhancing the player experience.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2021.3.18f1
Compatible
Compatible
Compatible
2021.3.21f1
Compatible
Compatible
Compatible
Description

Target Scanner is a customizable package for Unity game developers that allows AI to detect and track in-game objects, such as enemies, bots, and other targets. With customizable target types, detection ranges, and information displays, developers can create more immersive and dynamic gameplay experiences. Target Scanner is an essential tool for game developers looking to take advantage of AI technology in their games.


You can also download the script from my Github repo


GITHUB Link

Technical details

FEATURES:

  • Field of view: define the area in which the AI can detect targets.
  • Alert area: specify the distance at which the AI will become aware of a target's presence.
  • Height difference: adjust the AI's ability to detect targets at different elevations.
  • View obstacle: customize how the AI will react to obstacles blocking its line of sight to a target.
  • Give the nearest target: enables the AI to prioritize the closest target.
  • Customizable detection parameters: allow developers to fine-tune target detection to their game's specific needs.

METHODS:


Return methods (Transform): provide developers with the location and orientation of detected targets.

  • GetTarget(): retrieve the target that the AI is currently tracking.
  • GetNearestTarget(): retrieve the closest target to the AI's position.
  • GetTargetList(): retrieve a list of all detected targets.

OTHER METHODS:

  • AddTarget(Transform): enables developers to add pre-existing targets to the detection list.
  • ShowGizmos(): display the detection area in the Unity editor scene view for easier visualization and debugging.

Target Scanner

(3)
52 users have favourite this asset
(52)
FREE
20 views in the past week
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR