Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor out Tree Meta Data (Graphical) from the Core classes #9

Open
luis-l opened this issue Jul 5, 2020 · 0 comments
Open

Refactor out Tree Meta Data (Graphical) from the Core classes #9

luis-l opened this issue Jul 5, 2020 · 0 comments
Assignees

Comments

@luis-l
Copy link
Owner

luis-l commented Jul 5, 2020

The BehaviourTree and BehaviourNode classes store Tree Meta Data.

The meta data is defined inside UNITY_EDITOR blocks and stores information such as Node Position, Pan, Zoom, etc. This meta data is only relevant to the BonsaiDesigner.

This was initially done so data was centralized in one place and serialized along with the ScriptableObject.

The data should be moved outside the core classes.

An approach can be storing all this data in a separate ScriptableObject (TreeMetaData class). This object would be added under the BehaviourTree asset object so all data is centralized. In play mode, the tree instance running will not use this data at all.

@luis-l luis-l self-assigned this Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant