Unity3d How to find RawImage with name in code

729 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 best solutions below

0
On BEST ANSWER

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