Kaiju Agents Utility
Extension for creating utility AI with Kaiju Agents.
This extension provides to a means to create utility AI with Kaiju Agents based on a sample by git-amend.
Overview
- Create a class which extends from
KaijuUtilityBrainand attach it to your agent. - Override the
KaijuUtilityBrain.UpdateContext()method, and use the set methods to assign blackboard variables. - Create actions by extending
KaijuUtilityAction. - Create instances of the new actions.
- Create and configure considerations by right-clicking in the project and going to
Kaiju Solutions > Agents > Utility > Considerations. - Assign considerations to their actions.
- Assign actions to the created brain.
Installation
- Install Kaiju Agents.
- In your Unity project, from the top menu, go to
Window > Package Management > Package Managerand click the+icon in the top left followed byInstall package from git URL.... - Paste in one of the below options:
Latest Release - Recommended
https://github.com/Kaiju-Solutions/Kaiju-Agents-Utility.git#release
Specific Release
Replace the #release in the latest release installation with the version number of the given release.
Development
This will pull directly from the main branch, and is not recommended unless there is a specific feature needed not yet in the latest release.
https://github.com/Kaiju-Solutions/Kaiju-Agents-Utility.git?path=/Packages/com.kaijusolutions.agents.utility
Updating
- You should first update Kaiju Agents.
- Important: Kaiju Agents Utility and any other Git-installed packages in your Unity project will not appear as needing updates under the
Updatestab, and hence why you need to manually choose to update. - Recommended: Delete all existing samples and exercises from your project's
Assetsfolder. - In Unity, from the top menu, go to
Window > Package Management > Package Managerand selectIn Project. - Select
Kaiju Agents Utilityand click theManagebutton followed byUpdate.
Samples and Exercises
A sample implementation has been provided for the "Microbes" exercise of Kaiju Agents. To get started with this:
- Import the "Microbes" exercise from Kaiju Agents.
- Import the "Box Destroyer" sample of "Kaiju Agents Utility".
- Find the imported core Kaiju Agents assets of the "Microbes" exercise.
- Select the "Microbe" prefab and remove the "Microbe Controller" component. Add a "Microbe Brain" component, and add all "Actions" provided by the sample.