unity-game-enginerawimage

Unity3d How to find RawImage with name in code


texture = tex;
GameObject.Find("Aciklama1L1").transform.GetChild(0).GetComponent<RawImage>().texture = tex;

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


Solution

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