You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
465 B
19 lines
465 B
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;
|
|
}
|
|
}
|
|
}
|
|
|