C# Extension Methods in Unity! – Intermediate Scripting Tutorial
Watch this video in context on Unity Learn:
https://learn.unity.com/tutorial/extension-methods
Extension methods allow you to give functionality to classes that you cannot modify and don’t want to derive from. In this video you will learn how to create an extension method for the Transform class.