A
A
Alexander2021-07-26 20:16:20
Unity
Alexander, 2021-07-26 20:16:20

If my object is DontDestroyOnLoad, how can it find the UI buttons on one of the scenes?

Greetings, my buttons "Login / Logout to / from Google Play Games" simply replace one with one (SetActive). I even made a separate object with these fields + a script. DontDestroyOnLoad was supposed to find and take variables from it . But it doesn't find it (FindObjectOfType).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tosha43, 2021-07-27
@AlexandrG44

transform.Find() try
Object with buttons placed on stage? Not created at runtime?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question