How To Create A Dropdown in Unity | Beginner UI Tutorial & Scripting

preview_player
Показать описание
This tutorial will show you a basic example of creating a UI dropdown and controlling the actions through code, so when we choose a option it will run some code that we have written. All written in C# and suitable for TextMeshPro or the default Unity UI.

🎁 Get OVER 165+ Scripts, Projects and premium content on my PATREON HERE:

·························································································

🔥Unity Materials / Files & More:

🔥 UNITY SUBSCRIPTIONS:

·························································································

💰BIG DISCOUNTS on my website, for my UNITY ASSETS:

💬Join the Community Discord:

💝 Make a donation to the channel:

·························································································

⬇️ SpeedTutor Puzzle Assets:

⬇️ SpeedTutor Best Selling Assets:

⬇️SpeedTutor Model Packs:

My Assets include: Gas Mask, Flashlight, Generator, Themed Key , Padlock, Phone, Chess Puzzle, Lever, Valve Puzzle, Fuse Box & Safe Systems. Cardboard, Debris, Massive Models and more!

························································································

⭐ Connect with me:

·······················································································
#SpeedTutor #Unity #Dropdown
Рекомендации по теме
Комментарии
Автор

I got asked to make a dropdown tutorial so here it is, let me drop this knowledge into your life! :D

SpeedTutor
Автор

Exactly what I was looking for!
Thank you!

SelaMalka
Автор

very usefull tutorial again. Thx my friend!

gmangman
Автор

When I add the script on the "On Value Changed" event thing, I get a number next to it saying "0" which can be changed, whenever I change the dropdown, it doesn't actually change the selected option, it DISPLAYS the second option, but in reality, nothing changed

ghoste
Автор

what a timing! i literally wanted to start doing ui/buttons etc this would be a great help Thank you

lokosstratos
Автор

bit confused for newbie. But, very useful if know bit about unity. nice tutorial

aelren
Автор

Is there a place I can download this example? Not only is my number not updating properly, the list isn't expanding the way it should.

thewebexpert
Автор

I cannot click at my dropdown box and show the dropdown options by default for some I am using TM Pro v3.0.x

peterwan
Автор

Great Tutorial! I'm curious though, I thought in order to change anything during runtime the code would need to be within the Update method. Why is that not the case here?

BmoreGaming
Автор

Hi Matt, just the man! Is there any way of creating or having a reflection probe on UI text?

random_precision_software
Автор

Looks excellent, it would be interesting to see how it can be done in the new UI toolkit

sonwukong
Автор

Wondering if you’d have any advice on how to change the size of a game object from a press on the drop down?

amaniwebber-schultz
Автор

You use a Text label as variable, that seems creepy

robertogiudici
Автор

How about to create a tuts not for 5 years old children?

yaroslavmakarov