0
Answered

How does bolt interact with source control?

Joshua Galvin 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 1

Does it store the graphs in plain text or binary?

Is there any diff tooling?

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Answer

Answer
Answered

Bolt graphs are serialized as compressed JSON. As long as you keep your editor serialization mode to force text (the default since Unity 2017), no binary output will be generated. 

Unfortunately diffing isn't ideal, because even if we emitted pretty-printed JSON, Unity would encode the line breaks (ex. \r\n) instead of laying them out line-by-line in the YAML file. There doesn't seem to be anything we can do about this. There is no additional custom diffing tool.

If you need to see the graph data in pretty-printed JSON, you can choose Show Data... from a machine or macro's cog menu in the inspector.

Answer
Answered

Bolt graphs are serialized as compressed JSON. As long as you keep your editor serialization mode to force text (the default since Unity 2017), no binary output will be generated. 

Unfortunately diffing isn't ideal, because even if we emitted pretty-printed JSON, Unity would encode the line breaks (ex. \r\n) instead of laying them out line-by-line in the YAML file. There doesn't seem to be anything we can do about this. There is no additional custom diffing tool.

If you need to see the graph data in pretty-printed JSON, you can choose Show Data... from a machine or macro's cog menu in the inspector.