diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/ExportingGltfData.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/ExportingGltfData.cs index 7eb73bd4a..a5b29d16c 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/ExportingGltfData.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/ExportingGltfData.cs @@ -149,7 +149,7 @@ namespace UniGLTF var json = f.ToString().ParseAsJson().ToString(" "); - json = GltfJsonUtil.Update_extensionsUsed(json); + json = GltfJsonUtil.FindUsedExtensionsAndUpdateJson(json); return Glb.Create(json, BinBytes).ToBytes(); } @@ -176,7 +176,7 @@ namespace UniGLTF GltfSerializer.Serialize(f, GLTF); var json = f.ToString().ParseAsJson().ToString(" "); - json = GltfJsonUtil.Update_extensionsUsed(json); + json = GltfJsonUtil.FindUsedExtensionsAndUpdateJson(json); return (json, GLTF.buffers[0]); } diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfJsonUtil.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfJsonUtil.cs index 3b7403eff..5492e5490 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfJsonUtil.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfJsonUtil.cs @@ -61,7 +61,7 @@ namespace UniGLTF /// /// /// - public static string Update_extensionsUsed(string src) + public static string FindUsedExtensionsAndUpdateJson(string src) { var used = new HashSet(); var parsed = src.ParseAsJson(); diff --git a/Assets/UniGLTF/Tests/UniGLTF/GltfJsonUtilTests.cs b/Assets/UniGLTF/Tests/UniGLTF/GltfJsonUtilTests.cs index d044a0744..9c58fd5d0 100644 --- a/Assets/UniGLTF/Tests/UniGLTF/GltfJsonUtilTests.cs +++ b/Assets/UniGLTF/Tests/UniGLTF/GltfJsonUtilTests.cs @@ -9,7 +9,7 @@ namespace UniGLTF [Test] public void Update_extensionUsed() { - var dst = GltfJsonUtil.Update_extensionsUsed(@"{ + var dst = GltfJsonUtil.FindUsedExtensionsAndUpdateJson(@"{ ""asset"": { ""generator"": ""COLLADA2GLTF"", ""version"": ""2.0"" @@ -50,7 +50,7 @@ namespace UniGLTF [Test] public void Replace_extensionUsed() { - var dst = GltfJsonUtil.Update_extensionsUsed(@"{ + var dst = GltfJsonUtil.FindUsedExtensionsAndUpdateJson(@"{ ""asset"": { ""generator"": ""COLLADA2GLTF"", ""version"": ""2.0""