How to Use Dictionaries in Unity and C# [BEGINNER FRIENDLY]

  Рет қаралды 9,576

Wild Cockatiel Games

Wild Cockatiel Games

Күн бұрын

Пікірлер: 19
@atefehgarshasbi1866
@atefehgarshasbi1866 3 жыл бұрын
Very well described!
@wildcockatielgames
@wildcockatielgames 3 жыл бұрын
Thank you!
@LaraSilvestris
@LaraSilvestris 3 жыл бұрын
Thank you so much for explaining it so clearly! Our teacher used Dictionaries last autumn while teaching us game programming and I didn't understand a thing but now I'm finally starting to understand them. I'll definitely come back to this video when I'm trying to use them myself for the first time!
@wildcockatielgames
@wildcockatielgames 3 жыл бұрын
Really happy to hear you found this video to be helpful! Good luck in your game programming. I'm always trying to break down tricky subjects into understandable terms :)
@whilma_dikfit
@whilma_dikfit 2 жыл бұрын
I needed this for the exact same reason as your star thing.
@geneanglen3391
@geneanglen3391 2 жыл бұрын
Thank you for this video...very well explained. I was looking for "lists" and ended here instead...glad I did, because I think "dicts" are what I need to be using :) Instead of trying to remember which index # to use for my values, I just use a description that is easy to remember. Again, thank you.
@Matt-fm1wo
@Matt-fm1wo 3 жыл бұрын
Really good description of Dictionaries. Made it very clear :)
@mr-fluffy469
@mr-fluffy469 3 жыл бұрын
Such a great video. Thumbs up!
@ethanwimsett
@ethanwimsett Жыл бұрын
awesome explanation, thanks
@elliottk68va
@elliottk68va 3 жыл бұрын
Excellent video. Thanks!
@cainothecreator8363
@cainothecreator8363 2 жыл бұрын
When I first saw the level select my immediate thought was to have a value of 2D Array and a Bool. Dictionary starsEarned = new Dictionary; Checking level 2, star three would look like: return starsEarned[{1,2}];
@abdelrhmanemira2480
@abdelrhmanemira2480 5 ай бұрын
Thanks a lot.
@StygianStyle
@StygianStyle 2 жыл бұрын
What do you think of this idea: I'm using a dictionary to access information about objects that are instantiated randomly in a grid pattern similar to a match 3 game. I need to learn what type of object is at a given location, and unity doesn't have a built-in way to do that without colliding a ray or object with it. So my idea is to take the vector3 coordinates, assign the x and z coordinates to int variables, and use a formula (x * 1000 + z) to create unique integers as keys for the dictionary table. (I don't need the y coordinate because y is always the same value. all puzzle objects are at the same height above the ground.
@mfatihbarut
@mfatihbarut 3 жыл бұрын
hi, why don't you create a simple int variable (Star) and change it to 1 2 3 for star counts.
@Android-Sniper
@Android-Sniper 3 жыл бұрын
more like this videos. 👍
@wildcockatielgames
@wildcockatielgames 3 жыл бұрын
Always thinking of the next topic to cover!
@Gomace
@Gomace 9 ай бұрын
This guy kind of reminds me of Paul Rudd, and I don't really know why.
@Jose-mc5dl
@Jose-mc5dl 3 жыл бұрын
What is better? a dictionary or an scriptable object?
@cheryllockhart6195
@cheryllockhart6195 Жыл бұрын
Nope... still don't get it.
The Dictionary Data Structure in C# in 10 Minutes or Less
10:20
IAmTimCorey
Рет қаралды 40 М.
10 Things You NEED to Be Doing in Unity
11:40
Tarodev
Рет қаралды 136 М.
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 18 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 37 МЛН
One day.. 🙌
00:33
Celine Dept
Рет қаралды 56 МЛН
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 733 М.
📚What is a Dictionary in C#?
27:26
tutorialsEU
Рет қаралды 31 М.
The Power of Scriptable Objects as Middle-Men
17:41
samyam
Рет қаралды 130 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 20 МЛН
7 easy mistakes to make (and how to avoid them)
6:49
Wild Cockatiel Games
Рет қаралды 1 М.
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 937 М.
Basics of Using a Dictionary in C# and Unity
18:33
Digestible
Рет қаралды 13 М.
Unity async / await: Coroutine's Hot Sister [C# & Unity]
16:18
Уроки C# - Dictionary - Словарь
12:18
XpucT
Рет қаралды 23 М.
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН