socialpoint-labs / unity-yaml-parser

Python3 library to manipulate Unity serialized files from outside the Unity Editor.
https://pypi.org/project/unityparser/
MIT License
137 stars 24 forks source link

Allow parsing all Unity scenes and prefabs #2

Closed sp-ricard-valverde closed 5 years ago

sp-ricard-valverde commented 5 years ago

Unity scenes and prefabs sometimes contain unexpected YAML tokens(stripped token right next to each document's anchor) that confuses the parser.

It shouldn't be hard to parse and save this token in the class(if present) to later serialize the same output.

Having the ability to manipulate all scenes and prefabs can be very handy.

allender commented 5 years ago

I have re-submitted some pull requests to fix this issue (and a couple of others that I found). Sorry to have you re-review them, but I had changes mixed in with the wrong PRs