- Home /
Is it possible to edit a unity scene without loading it in the editor?
I'm developing an editor extension and I want to modify a scene (add/modify a game object). The user might not have this scene open in the editor so I wonder if it's possible to do this without having to open the scene in the editor?
Answer by MrMatthias · Dec 25, 2018 at 12:05 PM
that's only possible if you edit the file directly, this would require the user to use text based scene files though. If you target professional users they probably use version control and text serialisation, so that should work. I wouldn't do any changes though unless requested by the user. https://docs.unity3d.com/Manual/FormatDescription.html
Thanks, do you know if there are YA$$anonymous$$L parsers that come with the engine or third-party parser (for C#) I can use to make this easier?
I think unity does this on the c++ side, so no api. There probably are third party parsers for c#, but I never used one.