Reply To: Can I disable FlowScript Controller serializing Zoom and Translation?

FlowCanvas Forums Support Can I disable FlowScript Controller serializing Zoom and Translation? Reply To: Can I disable FlowScript Controller serializing Zoom and Translation?

#3484
Gavalakis
Keymaster

Hello there,

I initially opted to serialize translation and zoom so that it is saved with the graph and thus a graph opens up at the same translation/zoom that it was left at. Furthermore serializing translation and zoom also allows for them to be part of an Undo (and thus being more clear what was undoed). With that said, you can open the GraphSource.cs and remove the serialization attributes from the ‘_translation’ and ‘_zoomFactor’ fields to not serialize them. I will also look into this and possibly change them to be serialized in EditorPrefs instead.

Let me know if that works for you.

Thanks!

Join us on Discord: https://discord.gg/97q2Rjh