BindInputField
2_Bindings
Last updated
2_Bindings
Last updated
It can be useful sometimes to save a string from an input field, for example the Player Name. Let’s see how the BindInputField bindings works.
Select the PlayerNameInputField in the scene:
Now, on this object you should find the BindInputField component:
Play the game and enter a random name in the input field at the bottom of the screen.
Now stop the game and play again. You can see that the name persisted. In this example, the string variable: example_string_playerName is saved. Depending on your case, you can decide to save it or not.