Uploaded December 2021 | Updated September 2026, 2 weeks ago
Extension methods grant you the ability to extend classes you might not own without deriving from the class or modifying the original type. Add methods to any class and access them like you would any native instance method.
Perfect for extending base unity types, like Vector and SpriteRenderer.
❤️ Become a Tarobro on Patreon: patreon.com/tarodev
=========
🔔 SUBSCRIBE: bit.ly/3eqG1Z6
🗨️ DISCORD: discord.gg/tarodev
✅ MORE TUTORIALS: youtube.com/tarodev
0:00 What are extension methods?
1:00 Our first extension method
3:10 Extending the list class
5:43 Extending the string type
7:00 Extension method call priority
9:15 Useful extension methods
Extension methods grant you the ability to extend classes you might not own without deriving from the class or modifying the original type. Add methods to any class and access them like you would any native instance method.
Perfect for extending base unity types, like Vector and SpriteRenderer.
❤️ Become a Tarobro on Patreon: patreon.com/tarodev
=========
🔔 SUBSCRIBE: bit.ly/3eqG1Z6
🗨️ DISCORD: discord.gg/tarodev
✅ MORE TUTORIALS: youtube.com/tarodev
0:00 What are extension methods?
1:00 Our first extension method
3:10 Extending the list class
5:43 Extending the string type
7:00 Extension method call priority
9:15 Useful extension methods









![2D follow AI with Unity - [Tutorial]
In this video, Ill show you how to create an enemy which will follow your player. It uses an adjustable rotation speed to give you greater control over the enemys accuracy.
❤️ Become a Tarobro on Patreon: https://www.patreon.com/tarodev
🔔 SUBSCRIBE: https://bit.ly/3eqG1Z6
🗨️ DISCORD: https://discord.gg/tarodev
✅ MORE TUTORIALS: https://www.youtube.com/tarodev
MORE TUTORIALS:
https://www.youtube.com/c/Tarodev
0:00 Intro
0:38 Setting the follow target
1:15 Simple following
2:55 Adding rotation speed for realism
4:36 Moving towards our rotation direction 2D follow AI with Unity - [Tutorial]](https://i.ytimg.com/vi/jlklOd8PEQE/mqdefault.jpg)
