📅  最后修改于: 2022-03-11 14:48:39.706000             🧑  作者: Mango
// 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