Rasagar/Library/PackageCache/com.unity.2d.sprite/Editor/Interface/IAssetDatabase.cs

24 lines
530 B
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
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);
}
}
}