Hello i’m creating a game, and i want to ask the player to give his name at the end.
So i’m using an Input Field.
This object contain a PlaceHolder and a Text.
I wrotte in the text of the PlaceHolder “enter your name”,
but when i want to change text value of the Text, it’s does not appears.
The cursor does not appears neither.
My project contains an Event System.
the font size of the text and the PlaceHolder in the same.
I attached a script to my InputField in the “dynamic string” section but as i can change the value of the text, i can’t call this function.
The code of this function is this :
public void NewBestPlayer(string name) {
newBestPlayerInput.text = name; // i don’t think this is usefull
UpdateHighScores(rank, score, name);
}
Can someone explain to me what’s wrong with my using of the InputField please ?