Unity: C# Generics in Unity! – Intermediate Scripting Tutorial

C# Generics in Unity! – Intermediate Scripting Tutorial
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.

View on YouTube

Join the Discussion

Share your thoughts, ask a question, or tell us what you learned. Your first comment is reviewed before it appears. Once approved, future comments using the same name and email can appear directly, subject to spam checks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Fix the Blender logo

Drag the loose piece into the missing part. A close fit is enough.

Loading verification…

Keyboard: arrows to move, Shift for fine adjustment, Enter to check. Verification only; movement is not stored. Logo: Blender.