How to Change Text UI In Unity via Script In Under a Minute! - ZDev-9 Unity Tutorials!

preview_player
Показать описание
In this video I'll show you how to change the font color of text with a script.
Udemy Courses:
Рекомендации по теме
Комментарии
Автор

I had problems with another tutorial as it said "Text" didn't exist. Instantly you fixed it by saying to add UnityEngine.UI. Fast and simple tutorial, perfect.

ethantuininga
Автор

I was looking for this for 2 hours. Most tutorials only show how to change text with another predefined prefab. With your video, I was able to dynamically generate the text. Ty sir

danielmorgan
Автор

Literally was saying to myself damnit why can't any ui vids be under two minutes and here you are. Immediately subbed.

Chmelewsky
Автор

I added the Text(TMP) in canvas as I didn't have the Text option. I followed all the steps as you showed in your video. But I am not able to drag and drop the Text(TMP) in the New Script(Text), could you help?

Prattzzyy
Автор

Thank u so much for the vid. It helped me a lot.

mrdragon
Автор

sir the title was under a minute but that was 1.33 i want my money back pls jk this was very helpful appreciate it

samueldinardi
Автор

Thanks for the super quick explanation!

GuitarsRgood
Автор

what if I want to display the text from more than one variable? tnx for this video (:

anai
Автор

Hey when I right click in the Heirarchy and hit create>UI>, "Text" Doesn't show up? Only "Text-TextMeshPro" shows up. I am on unity version: 2021.3.1f1. Any clue why I am having this problem?

evanhiatt
Автор

Dude, I've a problem attaching my text to the script, I drag and drop the text UI element but it isnt applying I've written the variable public Text scoreText; but it isnt applying why the heck?

JaigurudevTNOL
Автор

how do i make it so i can show a float variable in the text.text script

StarlingHK
Автор

How can I do that but i want to change the text with a value called "High Score" which is calculated in another script?

lousadascp
Автор

I need to know how to manipulate texts with scripts like take a value from a script and display on text UI or just add value from script like scores

KBforJesusChrist
Автор

so Im having this problem in unity version 2021.3.21f1 where the text wont show up on the game view.
it also looks really blurry when Im in scene view. I changed the width heigth and font size instead of scale but still looks the same.
textmesh pro dosnt look blurry when I use it though, but it still wont show up on the game scene.

Can you help me figure out why it wont render in game view please?

warp
Автор

Can you make a tutorial about how to change fonts in Android unity games? Try on this game "PvZ Heroes"

ThePrimalPeaGaming
Автор

how do i move the canvas to were i want and why cant i see my text in the place i want it

toadblue