"Custom" mode for a custom visualizer?

  • September 10, 2017 at 03:12 #21920

    How do I define a “custom” mode for a custom visualizer in code?

    What I want is to just have it so I don’t need to have the specific a.i. game object selected to see the visualization. I only have one AI so for now I just always want it on.

    • This topic was modified 1 month, 1 week ago by edwon.
    September 11, 2017 at 09:05 #21944

    Hi Edwon,

    Thanks for your post.

    First of, you may want to have a look at our Visualizers documentation, if you haven’t already.

    However, you can always write your own visualization handlers from scratch. You don’t have to use the provided base classes, although they simplify the process somewhat.

    The “Custom” mode that you can select on the visualizers you write, requires you to override the “GetContextsToVisualize” method in the visualizer. In that method, you must populate the provided list of contexts “contextsBuffer”, even if there is just one. Thus, you must provide your own method for getting ahold of the correct Context object(s).

You must be logged in to reply to this topic.