Aşkın TEMEL
Aşkın TEMEL

Reputation: 61

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.

Upvotes: 1

Views: 843

Answers (1)

Aşkın TEMEL
Aşkın TEMEL

Reputation: 61

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

Upvotes: 1

Related Questions