mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-25 18:20:15 +00:00
Update EditorHelper.cs
This commit is contained in:
@@ -73,7 +73,14 @@ namespace YooAsset.Editor
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (guids.Length != 1)
|
if (guids.Length != 1)
|
||||||
|
{
|
||||||
|
foreach (var guid in guids)
|
||||||
|
{
|
||||||
|
string path = AssetDatabase.GUIDToAssetPath(guid);
|
||||||
|
Debug.LogWarning($"Found multiple file : {path}");
|
||||||
|
}
|
||||||
throw new System.Exception($"Found multiple {settingType.Name} files !");
|
throw new System.Exception($"Found multiple {settingType.Name} files !");
|
||||||
|
}
|
||||||
|
|
||||||
string filePath = AssetDatabase.GUIDToAssetPath(guids[0]);
|
string filePath = AssetDatabase.GUIDToAssetPath(guids[0]);
|
||||||
var setting = AssetDatabase.LoadAssetAtPath<TSetting>(filePath);
|
var setting = AssetDatabase.LoadAssetAtPath<TSetting>(filePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user