View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 2022.1.23 or later
- Package size
- 111 KB
- Files
- 24
- Favorites
- 2
- Views in the past week
- 1
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $4.99 on
Keywords
Simple State Machine for NPCs
This is a simple finite state machine. This can help in setting up simple npcs that need different states.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 3
Simple State Machine for NPCs screenshot 1
About this asset
This package is made for anyone that wants a simple, but customizable and extendable state machine. I have used this template in multiple games and it's easy to use and extend once you understand the principles of it.
From the publisher's Asset Store listing.
Technical details
This package contains a state machine and the following states for testing or using in your own projects:
The state machine changes states based on some conditions and a timer, those are customizable for the user.
- Idle state
- Patrolling state
- Can use waypoints or generate random locations in a zone to patrol to
- Chase state
- Attack state
- Get hit state
- Dying state
There's also gameplay elements such as a health bar and damage text.
Also included some debugging information to keep track of what state the NPC is in.
The package doesnt include any animations or animation controllers.
Package uses Unity's navmesh system
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 2022.1.23f1 | Compatible | Compatible | Compatible |
Asset is made using SRP, but it support all render pipelines as it doesnt relies on graphics so far.
As listed on the Asset Store.