I am working on a C# script to modify Animation Controllers in Unity3D 4.1 from code. Therefore I parse the controller using the YamlDotNet yaml parser but I am running into an error when trying to parse the controller file.
I tried it with other yaml examples and it works fine, but the controllers have some special tags next to the --- which seem to cause the parser to run into a SemanticErrorException.
Please see the following code which represents some lines of the AnimationController yaml file:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!91 &9100000
AnimatorController:
(...)
--- !u!1101 &110100000
Parsing a file looking similar to the following example works just fine:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
---
AnimatorController:
(...)
---
I was looking for a solution in the yaml specification for 1.1. and 1.2 but I still don't understand what these tags represent and how they are interpreted.
Can somebody explain me these tags and maybe also how I can still parse the AnimationController using a parser without the need of writing my own yaml parser.
Any help is appreciated! Thanks!
Greets
Thomas