Edit of asset "godot-yaml" Accepted
| Old/Current | New/Edit | |
|---|---|---|
| Title | godot-yaml | |
| Description |
Adds the ability to print and parse variables to and from yaml. Usage: Since this is a godot native plugin, you first need to (pre)load it like this: ``` yaml = preload("res://addons/godot-yaml/gdyaml.gdns").new() ``` After this the basic usage is like for JSON: To convert a value to a yaml string you need to use the print method, like this: ``` var yamlstring = yaml.print(1.0) ``` The parse method takes a yaml formatted string and tries to convert it into a godot variable. It returns a JSONParseResult. ``` var value = yaml.parse(yamlstring).result ``` If it cannot convert the string it will give an error message with information why it could not convert something and the position inside the string where it failed. |
Adds the ability to print and parse variables to and from yaml. Usage: Since this is a godot native plugin, you first need to (pre)load it like this: ``` yaml = preload("res://addons/godot-yaml/gdyaml.gdns").new() ``` After this the basic usage is like for JSON: To convert a value to a yaml string you need to use the print method, like this: ``` var yamlstring = yaml.print(1.0) ``` The parse method takes a yaml formatted string and tries to convert it into a godot variable. It returns a JSONParseResult. ``` var value = yaml.parse(yamlstring).result ``` If it cannot convert the string it will give an error message with information why it could not convert something and the position inside the string where it failed. |
| Category | Misc | |
| License | MIT | |
| Repository Provider | GitHub | |
| Repository Url | https://github.com/Beliaar/godot-yaml-asset | |
| Issues Url | https://github.com/Beliaar/godot-yaml-asset/issues | |
| Godot version | Godot 3.4 | Godot 3.4 |
| Version String | 0.9.3 | 0.9.3 |
| Download Commit | f83ea26756aa7a20964a2f6904ecac511edccc57 | f83ea26756aa7a20964a2f6904ecac511edccc57 |
| Download Url (Computed) | https://github.com/Beliaar/godot-yaml-asset/archive/f83ea26756aa7a20964a2f6904ecac511edccc57.zip | https://github.com/Beliaar/godot-yaml-asset/archive/f83ea26756aa7a20964a2f6904ecac511edccc57.zip |
| Icon Url |
https://raw.githubusercontent.com/Beliaar/godot-yaml-asset/master/icon.png
|
|