Files
RPGBook/Library/PackageCache/com.unity.2d.animation@494a3b4e73a9/Editor/ResourceLoader.cs
SHOUTING_PIRATE f5928e04c4 intial commit
2025-07-21 17:10:16 +01:00

19 lines
462 B
C#

using System.IO;
using UnityEngine;
namespace UnityEditor.U2D.Animation
{
internal static class ResourceLoader
{
const string k_ResourcePath = "Packages/com.unity.2d.animation/Editor/Assets";
internal static T Load<T>(string path) where T : Object
{
var assetPath = Path.Combine(k_ResourcePath, path);
var asset = AssetDatabase.LoadAssetAtPath<T>(assetPath);
return asset;
}
}
}