Firstborn/Library/PackageCache/com.unity.2d.sprite@1.0.0/Editor/Interface/IAssetDatabase.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05: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);
}
}
}