Files
RaidersRPG/Library/PackageCache/com.unity.2d.sprite@a1146c20a947/Editor/Interface/IAssetDatabase.cs
SHOUTING_PIRATE 3d2d2dc3e3 Initial commit
2025-07-01 21:03:21 +01:00

24 lines
530 B
C#

using UnityEngine;
namespace UnityEditor.U2D.Sprites
{
internal interface IAssetDatabase
{
string GetAssetPath(Object o);
AssetImporter GetAssetImporterFromPath(string path);
}
internal class AssetDatabaseSystem : IAssetDatabase
{
public string GetAssetPath(Object o)
{
return AssetDatabase.GetAssetPath(o);
}
public AssetImporter GetAssetImporterFromPath(string path)
{
return AssetImporter.GetAtPath(path);
}
}
}