From 58f930e9d65291b6940974a8519bdb117131cfc2 Mon Sep 17 00:00:00 2001 From: Isamu Mogi Date: Sun, 26 Jul 2020 18:56:58 +0900 Subject: [PATCH] =?UTF-8?q?Experimental=20Exporter=E3=81=A7json=E3=81=AB?= =?UTF-8?q?=E7=A9=BA=E3=81=AE=E9=85=8D=E5=88=97=E3=81=8C=E5=90=AB=E3=81=BE?= =?UTF-8?q?=E3=82=8C=E3=81=A6=E3=81=84=E3=81=A6glTF=E9=81=95=E5=8F=8D?= =?UTF-8?q?=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Serialization/SerializerGenerator.cs | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Assets/VRM/UniGLTF/Editor/Serialization/SerializerGenerator.cs b/Assets/VRM/UniGLTF/Editor/Serialization/SerializerGenerator.cs index ccccf2be4..27a81c1bb 100644 --- a/Assets/VRM/UniGLTF/Editor/Serialization/SerializerGenerator.cs +++ b/Assets/VRM/UniGLTF/Editor/Serialization/SerializerGenerator.cs @@ -48,10 +48,21 @@ namespace UniGLTF { {"gltf/animations", "if(value.animations!=null && value.animations.Count>0)" }, {"gltf/cameras", "if(value.cameras!=null && value.cameras.Count>0)" }, + {"gltf/buffers", "if(value.buffers!=null && value.buffers.Count>0)" }, + {"gltf/bufferViews", "if(value.bufferViews!=null && value.bufferViews.Count>0)" }, {"gltf/bufferViews[]/byteStride", "if(false)" }, {"gltf/bufferViews[]/target", "if(value.target!=0)" }, + {"gltf/animations[]/channels", "if(value.channels!=null && value.channels.Count>0)" }, {"gltf/animations[]/channels[]/target", "if(value!=null)" }, + {"gltf/animations[]/samplers", "if(value.samplers!=null && value.samplers.Count>0)" }, + {"gltf/accessors", "if(value.accessors!=null && value.accessors.Count>0)" }, + {"gltf/accessors[]/max", "if(value.max!=null && value.max.Length>0)"}, + {"gltf/accessors[]/min", "if(value.min!=null && value.min.Length>0)"}, {"gltf/accessors[]/sparse", "if(value.sparse!=null && value.sparse.count>0)"}, + {"gltf/images", "if(value.images!=null && value.images.Count>0)" }, + + {"gltf/meshes", "if(value.meshes!=null && value.meshes.Count>0)" }, + {"gltf/meshes[]/primitives", "if(value.primitives!=null && value.primitives.Count>0)" }, {"gltf/meshes[]/primitives[]/targets", "if(value.targets!=null && value.targets.Count>0)" }, {"gltf/meshes[]/primitives[]/targets[]/POSITION", "if(value.POSITION!=-1)" }, @@ -67,17 +78,27 @@ namespace UniGLTF {"gltf/meshes[]/primitives[]/attributes/WEIGHTS_0", "if(value.WEIGHTS_0!=-1)"}, {"gltf/meshes[]/primitives[]/extras", "if(value.extras!=null && value.extras.targetNames!=null && value.extras.targetNames.Count>0)"}, + {"gltf/meshes[]/weights", "if(value.weights!=null && value.weights.Length>0)" }, + {"gltf/materials", "if(value.materials!=null && value.materials.Count>0)" }, {"gltf/materials[]/alphaCutoff", "if(!string.IsNullOrEmpty(value.alphaMode))" }, + {"gltf/nodes", "if(value.nodes!=null && value.nodes.Count>0)" }, {"gltf/nodes[]/camera", "if(value.camera!=-1)"}, {"gltf/nodes[]/mesh", "if(value.mesh!=-1)"}, {"gltf/nodes[]/skin", "if(value.skin!=-1)"}, {"gltf/nodes[]/children", "if(value.children != null && value.children.Length>0)"}, + {"gltf/samplers", "if(value.samplers!=null && value.samplers.Count>0)" }, + {"gltf/scenes", "if(value.scenes!=null && value.scenes.Count>0)" }, + {"gltf/scenes[]/nodes", "if(value.nodes!=null && value.nodes.Length>0)" }, + {"gltf/skins", "if(value.skins!=null && value.skins.Count>0)" }, {"gltf/skins[]/skeleton", "if(value.skeleton!=-1)"}, - {"gltf/extensionsRequired", "if(false)"}, + {"gltf/skins[]/joints", "if(value.joints!=null && value.joints.Length>0)"}, + {"gltf/extensionsUsed", "if(value.extensionsUsed!=null && value.extensionsUsed.Count>0)"}, // dummy + {"gltf/extensionsRequired", "if(false && value.extensionsRequired!=null && value.extensionsRequired.Count>0)"}, {"gltf/extensions/VRM/humanoid/humanBones[]/axisLength", "if(value.axisLength>0)"}, {"gltf/extensions/VRM/humanoid/humanBones[]/center", "if(value.center!=Vector3.zero)"}, {"gltf/extensions/VRM/humanoid/humanBones[]/max", "if(value.max!=Vector3.zero)"}, {"gltf/extensions/VRM/humanoid/humanBones[]/min", "if(value.min!=Vector3.zero)"}, + {"gltf/textures", "if(value.textures!=null && value.textures.Count>0)" }, }; public Generator(string path)