Reply To: Request: Make assets easier to diff in source code form

Forums 💬 FlowCanvas ⚙️ Support Request: Make assets easier to diff in source code form Reply To: Request: Make assets easier to diff in source code form

#22138
kalms
Participant

    I looked into this a little bit myself. It was quick to change all places which call Graph.Serialize() to always ask for JSON pretty-printed formatting at serialization time. That didn’t help a lot though; Unity encodes the pretty-printed multiline string as a long single-line “line1rnline2rnline3rn…” type string, and I see no way to convince Unity to split a string across multiple lines in the .asset file. Without the newlines in the .asset file, the pretty-printed JSON is not very helpful for diffing.