View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.0
- Last updated
- First released
- Unity version
- 2022.3.62 or later
- Package size
- 3.5 MB
- Files
- 65
- Favorites
- 6
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $9.99 on
Keywords
Directional Pattern Recognition
This is a compact, lightweight tool that takes in a list of points and converts them into a simplified direction/length based pattern. Allows you to run code based on player drawings.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 5
Directional Pattern Recognition screenshot 1
About this asset
Directional Pattern Recognition converts a sequence of Vector3 points into a simplified pattern made of directional line segments. These patterns can then be matched against predefined patterns, allowing you to trigger gameplay events when a player draws the intended symbol.
The system is designed to interpret the likely intent of a drawing, tolerating variation in angle, length, and minor directional inconsistencies.
This makes it suitable for gesture systems where players draw shapes using a mouse, touchscreen, controller, or any input that produces point data.
This package includes an example game showcasing the tool. If you wish to test the tool yourself before getting this package, the game has been made publicly available here: https://connor-hasson.itch.io/runic-defence
From the publisher's Asset Store listing.
Technical details
- Converts lists of Vector3 points into simplified directional line patterns
- Pattern recognition system with configurable tolerance for angle and length
- Includes optional fuzzy logic, allowing for increased generosity in recognition
- Designed to interpret likely intended shapes rather than exact input paths
- Pattern presets stored as ScriptableObjects for easy editor configuration
- Supports runtime pattern generation and matching
- Works with any input system that produces positional point data (mouse, touch, controllers, etc.)
- Supports both 2D and 3D input (3D patterns included as experimental)
- Example scene included for drawing and testing patterns
- Playable showcase game demonstrating the system as a core mechanic
- Confirmed compatible with Unity 2022 LTS and newer
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2022.3.62f3 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.