diff --git a/Packages/jp.keijiro.metamesh/Editor/MetameshImporter.cs b/Packages/jp.keijiro.metamesh/Editor/MetameshImporter.cs index a8fc3a1..93a7cf2 100644 --- a/Packages/jp.keijiro.metamesh/Editor/MetameshImporter.cs +++ b/Packages/jp.keijiro.metamesh/Editor/MetameshImporter.cs @@ -1,6 +1,7 @@ using UnityEngine; using UnityEditor; using UnityEngine.Rendering; +using System.IO; #if UNITY_2020_2_OR_NEWER using UnityEditor.AssetImporters; #else @@ -53,7 +54,8 @@ public override void OnImportAsset(AssetImportContext context) Mesh ImportAsMesh(string path) { var mesh = new Mesh(); - mesh.name = "Mesh"; + string name = Path.GetFileNameWithoutExtension(path); + mesh.name = name; switch (_shape) {