1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
using UnityEngine; public static class EmptySprite { private static Sprite instance; public static Sprite Get() { if (instance == null) { instance = Resources.Load<Sprite>("procedural_ui_image_default_sprite"); } return instance; } public static bool IsEmptySprite(Sprite s) { if (Get() == s) { return true; } return false; } }