📜  如何使用代码统一更改图像 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:39.706000             🧑  作者: Mango

代码示例1
// Change From GameOject
public GameObject GameObjectWithImage;
public Sprite ImageYouWant;
GameObjectWithImage.GetComponent().sprite = ImageYouWant

// Change From Image
public Image Image;
public Sprite ImageYouWant;
Image.sprite = ImageYouWant