Add exporterVersion

This commit is contained in:
ousttrue
2018-04-22 17:02:10 +09:00
parent 4e6ccb0b4b
commit 10cc20f973

View File

@@ -8,8 +8,7 @@ namespace VRM
[Serializable]
public class glTF_VRM_extensions : JsonSerializableBase
{
[Obsolete("use gltf.asset.generator")]
public string version = VRMVersion.VERSION;
public string exporterVersion = "UniVRM-" + VRMVersion.VERSION;
public glTF_VRM_Meta meta = new glTF_VRM_Meta();
public glTF_VRM_Humanoid humanoid = new glTF_VRM_Humanoid();
@@ -20,7 +19,7 @@ namespace VRM
protected override void SerializeMembers(JsonFormatter f)
{
//f.KeyValue(() => version);
f.KeyValue(() => exporterVersion);
f.KeyValue(() => meta);
f.KeyValue(() => humanoid);
f.KeyValue(() => firstPerson);