C# Generics in Unity! - Intermediate Scripting Tutorial

Uploaded by Unity
Share: Twitter Facebook
Watch this video in context on Unity Learn:
https://learn.unity.com/tutorial/generics

Generic classes and methods allow you to write code without knowing the exact type they will have. The result is that you can write code that can work with a wide array of data types and provide a great level of flexibility. In this video you will learn to create generic methods and classes, as well as place constraints of generic types.