add Deserializer

This commit is contained in:
hiroj 2021-01-20 17:27:56 +09:00
parent 74b0f06fdb
commit bab29dc435

View File

@ -46,6 +46,9 @@ namespace UniGLTF
// (ProjectionType)Enum.Parse(typeof(ProjectionType), kv.Value.GetString(), true)
return $"({m_type.Name})Enum.Parse(typeof({m_type.Name}), {argName}.GetString(), true)";
case EnumSerializationType.AsString:
return $"({m_type.Name})Enum.Parse(typeof({m_type.Name}), {argName}.GetString(), false)";
default:
throw new NotImplementedException();
}