Simple Text Input Field Window in Unity (Submit Score, Name)

preview_player
Показать описание
Let's make a nice Input Window so the Player can insert some values like a Score or Name.

High Score Table with Saving and Loading

Simple UI Setup
If you have any questions post them in the comments and I'll do my best to answer them.

See you next time!

#unitytutorial #unity3d #unity2d

--------------------------------------------------------------------

Hello and welcome, I am your Code Monkey and here you will learn everything about Game Development in Unity 2D using C#.

I've been developing games for several years with 7 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

--------------------------------------------------------------------

Рекомендации по теме
Комментарии
Автор

Add an Input Window so you can ask the Player for a Name or a Score. Combine it with the Highscore Table created in a previous video.
Play 7 Awesome Games (Action, Strategy, Management) and Help Support the Channel!

CodeMonkeyUnity
Автор

Wow your channel is so helpfull. Thats like 10th times you help me with my problem;)

Dippps
Автор

this channel is always a great resource !

Hazzel
Автор

A cool addiction would be to talk about hoverable/draggable panels for this one.

rafaelcorrea
Автор

Hi, I am new to unity and have been following your tutorials. I have it set so that when I hover over the button it should go a lighter green like in the video but the background seems to vanish instead. Why would this be?

TharveH
Автор

where can i het the utils and can u send the project download link here because the website telling me error

wanchester
Автор

Very nice. Do you support paste? If yes, what will happen?

ericouellet
Автор

Also, when you create a Singleton, you should overide constructor(s) and make it (them) private.

ericouellet
Автор

I made one function in which i get the player game chances and scores from the playerpref now I have to add that score on the highscoreTable. just tell how to add that score that Iam getting by the playerprefs?

syedaalena
Автор

Nobody is making these kinds of videos. Most gamedev yts only cover the basics like movement and stuff so it's really nice seeing these videos. What keyboard are you using? It sounds good compared to my cherry MX blue keyboard.

aquaarmour
Автор

Hi!
I can't set the Action to onClick event in a regular button (8:10), is possible to implement it somehow without using a custom button class?

OsvaldoG
Автор

HELP!!! How do I get an INPUT FIELD for a MOBILE device..I bbed to enter a name for the high score table on ANDROID how do i do this? ive tried

random_precision_software
Автор

Nice one.
Could you explain how to implement Game Controller (Dualshock 4, XBOX One, Touch, etc.) for UI?
Im using (new) InputSystem 1.0, but i also got headache to implement it.

Maybe you know a good way to simplify that process.

SoundsByK
Автор

When I hide and show the input field the previous text is still there, how do I make it blank again? Thanks

freecode.ai-
Автор

Thanks for that great small details in your video, like Keycode.KeypadEnter in addition to just Return. Super professional.

igorbeaver
Автор

I've done my input "formatter" for name(just what i needed) like this:

inputName.characterLimit = 4;
inputName.onValidateInput += delegate (string s, int i, char c) { return char.IsLetter(c)? char.ToUpper(c) : '\0'; };

It caps the input in 4 and accepts only characters, with changes always to Lettercases.

crystian
Автор

IM HAVING AN ERROR IN THE UTILS IN THE WORD ASSITS IN ALL LINES

wanchester
Автор

Lastly.... Thank you, I really appeciate because I have zero experience on Unity!

ericouellet
Автор

It says object reference not set to an instance of an object for ClickFunc() please help :(

letsplaynay
Автор

Hi! Do you have any solution to detect events on overlapped UI elements? If the upper one has Event Trigger than the bottom one can't receive events like Drag, PoiterDown etc. I'm making a complex mindmap UI on Unity so this feature will make my life much easier.
It seems there should be a simple and clean solution, but can't find any on the internet for a long time.
Do you have any thoughts on this?

igorbeaver