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 more safe scalar values #1

Closed sp-ricard-valverde closed 4 years ago

sp-ricard-valverde commented 5 years ago

Right now every ScalarNode value is converted to a python str type on loading, and they all need to be of str type before being serialized to YAML again to preserve the document structure.

It should be possible to safely parse some ScalarNode patterns to int and maybe float, so they can be used in python that way.