Graph icon indicating copy to clipboard operation
Graph copied to clipboard

Save Schematic

Open Thejuster opened this issue 9 years ago • 2 comments

Hello, Nice work but i have one problem.

Cannot serialize graph nodes to the file. i saw this error:

"GraphNode" is not marked serializable. But when i marked serializable class and removed read only item, I have serialized the node but if node have a connection i got a crash whit same problem

Have a idea how to fix this bug?

Thejuster avatar Oct 28 '16 06:10 Thejuster

@Thejuster You'll probably want to write wrapper classes and use Newtonsoft.Json to serialize. You can find examples (messy but functional) in one of my projects (https://github.com/RichardRanft/T3DConvoEdit) in T3DConvoEditor/Wrappers. It's a little extra work, but not terrible.

I'm also working from a modified version of Graph - I need to be able to extend the classes in consumer applications so I have "broken" it.

RichardRanft avatar Nov 27 '17 16:11 RichardRanft

Hi Richard i have fixed whit all issue. After testing about hour, the conclusion is mark all event whit "Non Seriazable" Typically .net cannot serialize event. after this fix, work fine

Thejuster avatar Dec 18 '17 09:12 Thejuster