diff --git a/Packages/UIEffect/Scripts/Editor/ImportSampleMenu.cs b/Packages/UIEffect/Scripts/Editor/ImportSampleMenu.cs index 1ab55b26..ca4fea8e 100644 --- a/Packages/UIEffect/Scripts/Editor/ImportSampleMenu.cs +++ b/Packages/UIEffect/Scripts/Editor/ImportSampleMenu.cs @@ -56,7 +56,7 @@ private static void ImportSample(string jsonGuid, string sampleName) else throw new DirectoryNotFoundException(src); - AssetDatabase.ImportAsset(dst, ImportAssetOptions.ImportRecursive); + AssetDatabase.Refresh(ImportAssetOptions.ImportRecursive); } private static string GetPreviousSamplePath(string displayName, string sampleName)