Write to XML in Editor

Hello,

I’m writing a script that saves info from a unity window (example: I draw in the window), to an XML file.

The system doesn’t complete writing the file, and I’m guessing its because a new cycle starts while the file is still being written.

Is there any fix for that?

I tried using Coroutines, and tried a lot of code variations but nothing is working, and this is really urgent so I’d appreciate the help.

Regards,
playwiz

No worries its fixed