K
K
kovurado2021-07-23 08:39:05
C++ / C#
kovurado, 2021-07-23 08:39:05

How to render username from input field to text on another stage?

Hello, there is a problem, I'm making a game on the unit, the "registration" window did, when entering the game, through the input field it asks to enter a display name. I made 2 scenes, the first where they ask you to enter a name, and the second scene is a profile. And here is the crux of the problem, I don’t know how to display the entered name in the input field, in another scene in text.
If it's not clear, I'll post screenshots.
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s7on1250, 2021-07-23
@kovurado

Alternatively, you can use the static fields of a class, assign a value to this field in scene 1, and pull it out in scene 2. As an example https://ru.stackoverflow.com/questions/490389/%d0%...
If it's not clear, then read about the singleton design pattern.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question