Skip to content

Commit

Permalink
Merge pull request #352 from hiroj/fix_genSerializer_unlit
Browse files Browse the repository at this point in the history
fix generateCode Serializer, export unlit
  • Loading branch information
ousttrue authored Dec 26, 2019
2 parents 700b23f + cbe645c commit e642c76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ public static void GenSerialize(this IFormatter f, $0 value)
if (fi.FieldType == typeof(string) || fi.FieldType.IsEnum || fi.FieldType.IsArray || fi.FieldType.IsGenericType)
{

}
else if(fi.FieldType == typeof(glTF_KHR_materials_unlit))
{

}
else if (fi.FieldType.IsClass && fi.FieldType.GetFields(FIELD_FLAGS).Length == 0)
{
Expand Down
5 changes: 5 additions & 0 deletions Assets/VRM/UniGLTF/Scripts/IO/FormatterExtensionsGltf.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,11 @@ public static void GenSerialize(this IFormatter f, glTFMaterial_extensions value
{
f.BeginMap(0); // dummy

if(value.KHR_materials_unlit!=null)
{
f.Key("KHR_materials_unlit"); f.GenSerialize(value.KHR_materials_unlit);
}

f.EndMap();
}

Expand Down

0 comments on commit e642c76

Please sign in to comment.