using UnityEngine;
using UnityEngine.UI;
namespace utils
{
public class FileUtils
{
///
/// Documentation text normalized.
///
///
///
public static Sprite getImage(string path)
{
// Documentation text normalized.
Sprite sprite = Resources.Load(path);
if (sprite == null)
{
Debug.LogError($"无法在 Resources/{path} 下找到 Sprite!");
return null;
}
return sprite;
}
}
}