How i can find Raw Image called “Cursor” in script?
Canvas → EmptyObject → Cursor
How i can find Raw Image called “Cursor” in script?
Canvas → EmptyObject → Cursor
If this is the only Raw Image, use GetComponentInChildren<RawImage>()
. Otherwise you have a number of options, you could get all of the rawimages with GetComponentsInChildren<RawImage>()
and search trough the returned array, or transform.Find("EmptyObject").Find("Cursor")
for example.