Personalizing Dani AI


Sometimes you may need to differentiate between scripts of the same type even further. For example, a Health Observer can have a heart icon while a Detection Observer can have a radar.


Organizing Content

You can organize all Observers and Actions into submenus in the editor. This makes it easier to find the Observers and Actions you need to create complex AI behaviours.


You can easily do this with one line of code! See the example below from our Demo:

using InitialPrefabs.DaniAI;
using UnityEngine;
    // Add the CustomMenuPath attribute to define and organize content.
    [CustomMenuPath("Alert/Access Panel")]
    public class AccessPanelAction : Action {
        // View the demo to see the class implementation of AccessPanelAction
© initialPrefabs 2019