We are currently reusing behaviors via External Behavior Tree assets and making several prefab variants (Unity 2019.4) of enemies, with some SharedVariables tuning.
And currently we are facing the following problems:
- External behavior tree gets embedded into Behavior Tree component - which adds extra size to the prefab.
- Any shared variable modification snapshots all the shared variables and generally doesn't play well with prefab variants.
So what is the best proposed way to achieve our goals - to get reusable behaviors and to have shared variables tuned in prefab variants? It is OK if some coding is required.
And currently we are facing the following problems:
- External behavior tree gets embedded into Behavior Tree component - which adds extra size to the prefab.
- Any shared variable modification snapshots all the shared variables and generally doesn't play well with prefab variants.
So what is the best proposed way to achieve our goals - to get reusable behaviors and to have shared variables tuned in prefab variants? It is OK if some coding is required.