What is Utility AI?

Decision-making is the core of every AI system. Various methods exist for decision-making, such as Behavior Trees, Finite State Machines, etc. Among these, Utility AI is one of the most robust and powerful systems for decision-making in game programming. The core concept of Utility AI is that every decision of an agent is assigned a score (also known as utility). And the winner is the decision with the highest utility.

center|550

Here’s how the decision-making process of a Utility-Based AI works step by step:

  1. Evaluating decisions
    • The AI character evaluates all decisions based on multiple factors like the enemy health, distance to target, available resources, etc.
  2. Assigning utilities for each decision
    • Based on the evaluation, each decision is assigned a score representing its utility.
    • This score reflects how “good” the decision is in the current context.
  3. Making the decision
    • The decision with the highest utility score is chosen for the AI character to execute.
    • This ensures the NPC prioritizes decisions that are most beneficial for the current situation.

If you find this plugin more valuable than its price, especially when it's on sale, or if you simply want to support me on my development journey, there are currently 3 ways to do so:

1. Leave a 5-star review on the Unity Asset Store.
2. Buy assets through my Affiliate Links. It won't cost you any extra money, and I'll get a commission from Unity.
    • Utility Intelligence: A user-friendly Utility AI Framework
    • Top New Assets
    • Top Paid Assets
    • Top Downloaded Assets
3. Buy me a coffee at Ko-fi. Donation Benefits:
    • Your requests will be prioritized in my todo-list.
    • You'll receive a special role on my Discord server exclusively for donors:
       • Supporter: One-time donation.
       • Patron: Monthly donation.

Thank you so much for your support! 🥰
It allows me to dedicate more time to developing this plugin.


Last update : April 1, 2024
Created : March 31, 2024