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.

Leave a Reply

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