How and Why to use the Generic Type T in your C# Unity Game

  Рет қаралды 7,122

Dapper Dino

Dapper Dino

Күн бұрын

Пікірлер: 12
@bigsmoke5746
@bigsmoke5746 4 жыл бұрын
Props for enlarging text in your IDE. I don't need to squint to read like I have to for so many other tutorials.
@WalnutMax
@WalnutMax 5 жыл бұрын
Very helpful! You're really good to understand :) keep it up
@jordanstokes7143
@jordanstokes7143 4 жыл бұрын
This video was exactly what I was looking for! I've been creating a Unity game and was looking to be able add specific attributes to objects in my world, and this is exactly how I wanted to go about doing it. Thank you for your help!
@sourabhchoudhary3607
@sourabhchoudhary3607 4 жыл бұрын
Thank you sir, I subscribed, you must be a great channel to do this, at this level.
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Glad you enjoy the content :)
@jordanstokes7143
@jordanstokes7143 4 жыл бұрын
For anyone who would prefer the list to be returned as a list of that type, change the method declaration to this: - private List GetItemsByItemType() where T : Item - The only change is from List to List.
@AlKaponeLegend
@AlKaponeLegend 3 жыл бұрын
At 15min rigibody is a component but generics takes type item thats why it has the error. Good tutorial video on any case
@badublackwater6556
@badublackwater6556 4 жыл бұрын
19:22 "Should believe me that anyway" got me laughing ^_^
@nash494
@nash494 5 жыл бұрын
You are amazing, thanks.
@ShannonMedwedew
@ShannonMedwedew 4 жыл бұрын
That zero 2 wallpaper lol
How To Use ProBuilder For Rapid Prototyping - Unity Tutorial
16:44
How and Why to use Delegates in your C# Unity Game
16:55
Dapper Dino
Рет қаралды 9 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
What are Generics? (C# Basics)
13:48
Code Monkey
Рет қаралды 152 М.
C# Generics Explained - Unity Tutorial
11:31
Roundbeargames
Рет қаралды 8 М.
Programming a multiplayer game from scratch in 7 DAYS
18:28
(Better) Object Pooling - I Didn't Like My Old Solution
8:49
One Wheel Studio
Рет қаралды 15 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 338 М.
OBJECT POOLING in Unity : optimize performance and workflow
22:16
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН