Unity中为UGUI中的Image置空
2021-07-11 12:06
                         标签:开始   ugui   tsp   需要   mon   for   component   获取   keycode    首先需要一开始获取一张空的图片,然后进行记录,当想要给一个Image中的图片置空是时候就可以将其中的值置为其:   Unity中为UGUI中的Image置空 标签:开始   ugui   tsp   需要   mon   for   component   获取   keycode    原文地址:https://www.cnblogs.com/baosong/p/9551422.htmlpublic class ImageChange : MonoBehaviour {
    //获取的是原来的空图片
    private Sprite FormatSprite;
    public Sprite ChangeSprite;
    private void Start()
    {
        FormatSprite = transform.GetComponent
文章标题:Unity中为UGUI中的Image置空
文章链接:http://soscw.com/index.php/essay/103699.html