Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Packages/jp.keijiro.metamesh/Editor/MetameshImporter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using UnityEngine;
using UnityEditor;
using UnityEngine.Rendering;
using System.IO;
#if UNITY_2020_2_OR_NEWER
using UnityEditor.AssetImporters;
#else
Expand Down Expand Up @@ -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)
{
Expand Down