修改灵灯系统报错
This commit is contained in:
@@ -55,6 +55,8 @@ public static class SpiritLanternPrefabCreator
|
||||
Object.DestroyImmediate(root);
|
||||
|
||||
Debug.Log($"[SpiritLantern] Prefab 已创建: {prefabPath}");
|
||||
EditorUtility.PingAsset(AssetDatabase.LoadMainAssetAtPath(prefabPath));
|
||||
var asset = AssetDatabase.LoadMainAssetAtPath(prefabPath);
|
||||
Selection.activeObject = asset;
|
||||
EditorGUIUtility.PingObject(asset);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user