diff --git a/Assets/VRM10/Runtime/IO/Texture/Vrm10TextureDescriptorGenerator.cs b/Assets/VRM10/Runtime/IO/Texture/Vrm10TextureDescriptorGenerator.cs index 293fe0980..d1bce792d 100644 --- a/Assets/VRM10/Runtime/IO/Texture/Vrm10TextureDescriptorGenerator.cs +++ b/Assets/VRM10/Runtime/IO/Texture/Vrm10TextureDescriptorGenerator.cs @@ -84,7 +84,7 @@ namespace UniVRM10 var name = TextureImportName.GetUnityObjectName(TextureImportTypes.sRGB, gltfImage.name, gltfImage.uri); if (string.IsNullOrEmpty(name)) { - name = "thumbnail"; + name = MigrationVrmMeta.THUMBNAIL_NAME; } GetTextureBytesAsync getThumbnailImageBytesAsync = () => diff --git a/Assets/VRM10/Runtime/Migration/MigrationVrmMeta.cs b/Assets/VRM10/Runtime/Migration/MigrationVrmMeta.cs index d2975f420..656e8f4ed 100644 --- a/Assets/VRM10/Runtime/Migration/MigrationVrmMeta.cs +++ b/Assets/VRM10/Runtime/Migration/MigrationVrmMeta.cs @@ -27,6 +27,8 @@ namespace UniVRM10 // }, public static class MigrationVrmMeta { + public const string THUMBNAIL_NAME = "__VRM10_thumbnail__"; + public static UniGLTF.Extensions.VRMC_vrm.Meta Migrate(UniGLTF.glTF gltf, JsonNode vrm0) { var meta = new UniGLTF.Extensions.VRMC_vrm.Meta @@ -69,7 +71,7 @@ namespace UniVRM10 if (string.IsNullOrEmpty(gltfImage.name)) { // fall back default name - gltfImage.name = "__VRM10_thumbnail__"; + gltfImage.name = THUMBNAIL_NAME; } } break;