A
A
Armyashka2019-12-12 20:41:06
C++ / C#
Armyashka, 2019-12-12 20:41:06

How to use InputField for console output?

5df2793540163912386269.png
I need to output text from a UI input field from the menu of the game itself, not a predefined string.

public void OnSubmitName(string Name)
    {
        Debug.Log(Name);
    }

Is there an option to do this from the menu of Unity itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armyashka, 2019-12-13
@Armyashka

After changing the code, no text is displayed)
5df3b1c99cd1d477855468.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question