Modular-AI icon indicating copy to clipboard operation
Modular-AI copied to clipboard

Action/Condition Dropdown Fails to Update Post Compilation Module Changes

Open TolinSimpson opened this issue 3 years ago • 1 comments

ISSUE: If a AIAgent is being inspected while adding an action or condition and a change is made to a module's action/condition override then compiled the enum popup dropdown will not reflect the changes.

  • AIAgents not inspected during compilation do not have this problem.
  • Refreshing modules does not update the dropdown.

This is a potential Unity bug.

Workaround: Reset the component that had script changes. This however will also clear all assigned fields on the module component.

TolinSimpson avatar Sep 01 '22 18:09 TolinSimpson

Solution: Move the condition and action string arrays from modules into the custom inspector script.

This solution is not viable for Modular AI given the current data structure.

TolinSimpson avatar Feb 02 '23 21:02 TolinSimpson