BaseAgent | Package Manager UI website
docs.unity.cn
    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 © 2019 Unity Technologies
    Generated by DocFX