Загрузка...

What is Generics and how to use it in Unity

In this episode of Unity Scripting we will discuss what generics is and how you have been using it in Unity even without realizing! We will also see how to create own Generic Types and Generic Methods. Of course all of that scripting in C#

Docs about generics:
https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/types/generics
Docs about constraints:
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/generics/constraints-on-type-parameters
Got any questions? Join our discord:
https://discord.gg/hrZF93sCkc

#UnityScripting #Csharp #Generics

00:00 You have been using generics!
00:58 Our own generic type
02:29 Type constraints
03:15 Generic methods

Видео What is Generics and how to use it in Unity канала PitiIT
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять