Unity_1lab/1 laba/Library/PackageCache/com.unity.2d.sprite@897b7eecf04e/Editor/Interface/IAssetDatabase.cs
lapich_valya c9e999597d test
penis(передвинула стенку)
2025-09-15 22:14:24 +03: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);
}
}
}