Files
wub 530cdbf98f animation riging
riged the lights to the root animatior ready for animation
2026-11-30 19:13:17 +00:00

19 lines
449 B
C#

using System.IO;
using UnityEngine;
namespace UnityEditor.U2D.Sprites
{
internal static class Utilities
{
internal static Texture2D LoadIcon(string path, string name)
{
if(EditorGUIUtility.isProSkin)
{
name = $"d_{name}";
}
var combinePath = Path.Combine(path, name);
return AssetDatabase.LoadAssetAtPath<Texture2D>(combinePath);
}
}
}