- Home /
Question by
AbdulRaman · Jun 14, 2018 at 12:27 AM ·
imageparentchild
How to change Image source of a child of a panel
Flower is a parent which Contains an image as a child. the next code changes the parent image not the child!
public GameObject Flower; public Sprite HoneyJar; Flower.GetComponentInChildren().sprite = HoneyJar;
Comment