How to assign an image to an object at level 2


On the image below, I would like to assign puzzleImage to the btn image on level 2. I tried a lot of things but nothing works. I’m beginning my first video game.

Somebody can help me?



I finally succeed.

I’ve added a [serializedfield] Transform puzzleMenuSelectPanel;
To use Find you need a Transform object.

Then I have defined the path and assign the image:
puzzleMenuSelectPanel.Find("Puzzle Game Panel " + (level + 1) + "/Puzzle Buttons Holder " + (level + 1) + “/” + + “/CardFront/Image”).GetComponent().sprite = puzzleImage;