[Edit: The latest package version is the [0.2.3-preview]( AI Planner - v0.2-preview released page-2#post-5809171) release as of 5/5/20]
Hello, everyone! Today we are releasing our latest update to the Unity AI Planner, version 0.2.0-preview. You can update to the new version via the package manager. Here’s a few of the high-level changes you can expect in this release:
- Customizable planning settings (i.e. when and how to plan).
- Customizable plan execution settings (i.e. when and how to act).
- Better support for custom planner extensions.
- Terminal state rewards.
- Improved code generation and compilation.
- Improved UI with re-orderable lists, better operand validation, and plan visualizer inspector.
- Improved inspector workflow with new components (DecisionController, TraitComponent), operational actions as parameterized callbacks, and filtering of the game scene through world queries.
- Initial support for trait gizmos.
This update includes a fairly extensive refactor of various parts of the package, which can break projects built with prior versions. Notably, look out for the following changes:
- AgentDefinitions have been replaced with PlanDefinitions
- DomainObjectProvider has become TraitComponent
- BaseAgent has been removed, with its responsibilities divided between DecisionController and custom generated extensions to BasePlanExecutor.
- IOperationalActions have been replaced by parameterized method callbacks, assigned on the DecisionController.
- DomainObject*** classes and structs have been refactored to match TraitBasedObject*** naming.
For this update, we’re releasing both a new tutorial to walk you through a simple example setup from an empty project as well as a few sample projects for you to explore. We will continue to grow this set over time in order to provide examples of the many potential applications of the planner package. For now, this repo includes the following samples:
- VacuumRobot - Control a robot optimizing its path through an ever-dirty world.
- Match3 - Use planning to solve goal-based, tile-matching puzzles.
- EscapeRoom - Escape a room with locked doors, a key, and pressure switches by coordinating three agents with a single planner.
Please note: the previous Otto sample has not been updated to use version 0.2.0 of the AI Planner yet.
Thanks, everyone, for your helpful feedback! We look forward to seeing the many creative ways you use the package!
Step-by-step guide: AI Planner: Step-by-step guide - Google Docs
Step-by-step video: ai-planner-step-by-step.mp4 - Google Drive
New samples repository: GitHub - Unity-Technologies/ai-planner-samples: AI Planner: Samples