Unity Tutorial: Code TextMeshPro UI (InputField, Text, and Button)

  Рет қаралды 17,019

Digestible

Digestible

Жыл бұрын

This is a basic tutorial on how to use Unity's TextMeshPro UI elements: InputField, Text, and how to code a button click to change these.
If you are already familiar with how to create the UI elements and want to jump to the code section go here: • Unity Tutorial: Code T...
A very similar video but with Legacy UI can be found here: • Tutorial: Code Basic U...

Пікірлер: 38
@Cramad84
@Cramad84 3 күн бұрын
8 KZfaq tutorials to find out you put a '+' symbol to link the text together! Thankyou for the straightforward tutorial
@Digestible
@Digestible 2 күн бұрын
I'm glad it helped!
@yvonnevierra2715
@yvonnevierra2715 6 ай бұрын
I consider myself an expert developer. I am retired (70) but still love to code. I thought Unity would be useful to learn and to keep my brain sharp. It was killing me...i was not grasping the Unity relationships with the code. I watched a million videos and hit a brick wall on all of them. Yours was the first where i had the "Aha" moment. Bless you.
@Digestible
@Digestible 6 ай бұрын
Thank you for your comment - I'm so glad that my video helped you! I also have programmed for years and found that learning how the code connects to Unity difficult - things didn't seem to be set up like everything else I had done in the past (interactive multimedia development, web development, application programming) so I figured others may have run into this as well.
@darnocab
@darnocab 5 ай бұрын
me too! also try zigouros unity tutorials.
@JKTravelsShow
@JKTravelsShow 2 ай бұрын
I'm actually the opposite! I'm a game artist with no experience in coding by hand. I did so many Unity tutorials on how to write C# scripts, but it just does not register in my brain. Still cannot code anything unless I'm following a tutorial exactly and still can't understand what half the stuff even means. But Visual Scripting I found I could intuitively figure out myself and I understand conceptually what the tutorials are showing.
@muhammettahirtekatli245
@muhammettahirtekatli245 6 ай бұрын
You're really awesome! I learned the difference between "TextMeshProUGUI" and "TMP_InputField" when I was reaaly stuckted. Many thanks!
@darnocab
@darnocab 5 ай бұрын
Excellent concise tutorial. New to Unity. This is exactly what I was looking for. Thank you!
@nmnml5602
@nmnml5602 25 күн бұрын
I appreciate your style. It's a breath of fresh air after clicking through all the tutorials made by someone who sounds like they just chugged 10 Red Bulls.
@Digestible
@Digestible 24 күн бұрын
Thanks! Yah, no red bulls here
@androvictrayo-dy7eh
@androvictrayo-dy7eh 4 ай бұрын
A very splendid tutorial. thanks mate
@rahaf7982
@rahaf7982 3 ай бұрын
This video helped me ALOT with my graphics project. Thank you sooo much❤
@maladavek
@maladavek 2 ай бұрын
Awesome! Thank you for this video! Very concise and helpful!
@samanthacline3032
@samanthacline3032 3 ай бұрын
Thank you! I'm a beginner programming student, and I've been struggling with the UI setup portion so far. This is exactly the help I need for one question for my current assignment. I'm saving this video in my bookmarks for future reference. 😄
@Digestible
@Digestible 3 ай бұрын
Fantastic! I'm glad it helped you!
@duckenomics7981
@duckenomics7981 8 ай бұрын
Very helpful, thank you!
@ict1-eneriojohnrylm.577
@ict1-eneriojohnrylm.577 5 ай бұрын
Thank you very much!!! it help me alot on my game project.
@kathienooms3235
@kathienooms3235 9 ай бұрын
I'm not new to programming but I am to Unity. I was doing another simple tutorial using an InputField but not the TMP one and could not escape the null exception. This is perfect! I have been stuck for two days trying to find out what I was missing. Thankyou! Meticulous, precise and not once did you just assume I knew things :D
@Digestible
@Digestible 9 ай бұрын
Thanks for the feedback! I've run into frustrations with things like this as well (like the Legacy Text not working the same as TMP) so that's sometimes where I come up with video topics (from my own struggles)
@kathienooms3235
@kathienooms3235 9 ай бұрын
@@Digestible I'm bound to be working my way through anything you've come up with!
@Nitin-xf4by
@Nitin-xf4by 9 ай бұрын
very very than you for your work 😀
@Digestible
@Digestible 9 ай бұрын
I'm glad it helped!
@magickomchanell4556
@magickomchanell4556 5 ай бұрын
this was very helful thanks a milions mam
@alien7383
@alien7383 5 ай бұрын
TYSM Bro
@fastpvperj.6532
@fastpvperj.6532 7 ай бұрын
Thanks!
@prijunkoirala2410
@prijunkoirala2410 7 ай бұрын
I am trying to create sth like this in AR. How do i create this in AR under image target?
@user-su6xh7yk9h
@user-su6xh7yk9h 10 ай бұрын
Thanks for creating this. Is it possible to clear the input field text after assigning it to the output field?
@Digestible
@Digestible 10 ай бұрын
Absolutely. You can get and set text the same way - if i'm referring to the video you can clear the inputfield by having a line that says: userName.text = ""; notice that i still have to use the .text property and to clear it i just set it to "" which are two double quotes with nothing in it.
@Turkuaz-07
@Turkuaz-07 5 ай бұрын
Believe me or not, at least two hours ı was trying to understand where ı did mistake. Thanks. the problem is I writed "TextMeshProUGUI" instead "TMP_InputField" 🤣
@alexlavertyau
@alexlavertyau 7 ай бұрын
How can we overlay this 2D menu onto a 3D game in Unity?
@Digestible
@Digestible 7 ай бұрын
You can create this the same way while in a 3D game (I just made a 2d for this example). However it is kind of hard to see positioning, so at the top of your scene locate the 2D button - click it then proceed with creating on the canvas just like in the tutorial. When you create your first item it may not be in view initially - double click the canvas in the hierarchy and it will focus your view on that. Envision the canvas as being the screen as you create UI and position elements (you can also use the alignment tools in the inspector but i didnt get into that in the video). Dont worry about how they relate to your 3D gameobjects at this point - it will overlay the screen. When done you can click the 2D button again and you can go back to 3d mode - you wont see the UI unless you run it or look at the Game mode to view it. I hope this quick description helps (i did it from memory so i'm hoping i'm not omitting a step)
@Capsule-tu6mu
@Capsule-tu6mu 11 ай бұрын
You have a very beautiful voice
@Digestible
@Digestible 10 ай бұрын
Thanks!
@rajagrahari3310
@rajagrahari3310 Жыл бұрын
Hello
@rajagrahari3310
@rajagrahari3310 Жыл бұрын
I want to talk you something about the tutorial you created
@rajagrahari3310
@rajagrahari3310 Жыл бұрын
It's a great opportunity
@rajagrahari3310
@rajagrahari3310 Жыл бұрын
Provide me your preferred communication platform
@Digestible
@Digestible Жыл бұрын
@@rajagrahari3310 Hi thanks for watching. I've posted my email in the "about" section
if-else statements - Basic demo with C# in Unity
16:26
Digestible
Рет қаралды 863
Edit TextMesh Pro Using Scripts in Unity
0:42
EmanGameDev
Рет қаралды 14 М.
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 25 МЛН
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 9 МЛН
How to Get User Input and Validate It Using Unity
4:51
Max O'Didily
Рет қаралды 5 М.
New Game? | Unity Devlog 1
2:42
HOAG1
Рет қаралды 17
How to use Text, Input, & Buttons in your Game - UNITY 101
4:49
Jason Weimann
Рет қаралды 5 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 57 М.
How to get a variable from another script in Unity (the right way)
15:44
Game Dev Beginner
Рет қаралды 90 М.
Simple Text Input Field Window in Unity (Submit Score, Name)
22:43
A Beginner Guide to TEXTMESHPRO (Unity UI Tutorial)
9:26
SpeedTutor
Рет қаралды 87 М.
low battery 🪫
0:10
dednahype
Рет қаралды 1,6 МЛН
İĞNE İLE TELEFON TEMİZLEMEK!🤯
0:17
Safak Novruz
Рет қаралды 1,7 МЛН