BaseAgent | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    BaseAgent

    We have provided a BaseAgent class which handles the initialization of the PlannerSystem and Controller. Futhermore, this class possesses a serialized field for the initial domain data, which users may set in the inspector window in the editor. The BaseAgent class inherits from MonoBehaviour and, as a default, updates the controller on each frame.

    In order to make use of the planner, you must implement your own agent class, which inherits from BaseAgent. Ex:

    public class YourAgentClass : BaseAgent<YourAgentClass>
    {
    }
    

    Once you have an agent class, then you can define operational actions, which will allow you to control what happens within the game/simulation as a result of the controller selecting a planner action.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023