Unity3d How to find RawImage with name in code

706 views Asked by At
texture = tex;
GameObject.Find("Aciklama1L1").transform.GetChild(0).GetComponent<RawImage>().texture = tex;

I want change RawImage texture but it's not work.

1

There are 1 answers

0
Aşkın TEMEL On BEST ANSWER

[Solved] its not work because Gameobject is invisible, it cannot be found with find.