A
A
Artur Galyaev2020-11-29 13:45:33
Unity
Artur Galyaev, 2020-11-29 13:45:33

How to show hidden UI element from script?

I have a group of buttons hidden, just active is turned off, how can I find them through another script if Find and FindWithTag do not work when the element is hidden?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-11-29
@art5455

Searching for objects by name is Vasya's last job. (C)
Some main object, inside which these buttons, has direct references to them through the inspector. And all the others who need something from them already refer to this certain main object and call the ВключиВыключиКнопки.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question