A game about forced loneliness, made by TACStudios
at master 18 lines 462 B view raw
1using System.IO; 2using UnityEngine; 3 4namespace UnityEditor.U2D.Animation 5{ 6 internal static class ResourceLoader 7 { 8 const string k_ResourcePath = "Packages/com.unity.2d.animation/Editor/Assets"; 9 10 internal static T Load<T>(string path) where T : Object 11 { 12 var assetPath = Path.Combine(k_ResourcePath, path); 13 var asset = AssetDatabase.LoadAssetAtPath<T>(assetPath); 14 return asset; 15 } 16 } 17} 18