mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-23 03:16:12 -05:00
add Deserializer
This commit is contained in:
parent
74b0f06fdb
commit
bab29dc435
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user