Files

17 lines
307 B
C#
Raw Permalink Normal View History

using UnityEngine;
using UnityEngine.UI;
namespace Prefab
{
[RequireComponent(typeof(Image))]
public class ImagePrefabUI:MonoBehaviour
{
public Image image;
public Sprite Icon
{
get => image.sprite;
set => image.sprite = value;
}
}
}