Reply To: [FEATURE REQUEST] Add an option to disable minified JSON graph serialization

Forums 💬 NodeCanvas 🗨️ General Discussion [FEATURE REQUEST] Add an option to disable minified JSON graph serialization Reply To: [FEATURE REQUEST] Add an option to disable minified JSON graph serialization

#13101
danielk
Participant

    Here is a first start on reading/writing to disk. This is only editor atm, need to add build logic to bake it BACK in. This is a git patch. I name the resulting json files with a preceding “.” to ensure Unity ignores them. NOTE: this is super hacky. My recommendation would be to serialize into YAML. Mixing data formats is generally going to result in an inelegant solution

    For Graph.cs

    And for GraphOwner.cs (to also generate for bound prefabs):