diff --git a/Scripts/Format/Editor/VRMExporter.cs b/Scripts/Format/Editor/VRMExporter.cs index 9a3f7f673..f625a094f 100644 --- a/Scripts/Format/Editor/VRMExporter.cs +++ b/Scripts/Format/Editor/VRMExporter.cs @@ -15,7 +15,7 @@ namespace VRM public static glTF Export(GameObject go, string path = null, Action callback=null) { var gltf = new glTF_VRM(); - gltf.asset.generator = "Unity VRM Exporter"; + gltf.asset.generator = string.Format("UniVRM-{0}.{1}", VRMVersion.MAJOR, VRMVersion.MINOR); using (var exporter = new VRMExporter(gltf)) { _Export(gltf, exporter, go); diff --git a/Scripts/Format/VRMFormat.cs b/Scripts/Format/VRMFormat.cs index 11478f33e..0d00a88b5 100644 --- a/Scripts/Format/VRMFormat.cs +++ b/Scripts/Format/VRMFormat.cs @@ -8,7 +8,9 @@ namespace VRM [Serializable] public class glTF_VRM_extensions : JsonSerializableBase { + [Obsolete("use gltf.asset.generator")] public string version = VRMVersion.VERSION; + public glTF_VRM_Meta meta = new glTF_VRM_Meta(); public glTF_VRM_Humanoid humanoid = new glTF_VRM_Humanoid(); public glTF_VRM_Firstperson firstPerson = new glTF_VRM_Firstperson(); @@ -18,7 +20,7 @@ namespace VRM protected override void SerializeMembers(JsonFormatter f) { - f.KeyValue(() => version); + //f.KeyValue(() => version); f.KeyValue(() => meta); f.KeyValue(() => humanoid); f.KeyValue(() => firstPerson);