Shorter Cleaner Code with Extension Functions - C# and Unity
C# extension functions help you write less code and cleaner code with fewer bugs. You can extend any class or struct even built-in types in Unity or assets from the Asset Store. Want to support the Channel? ******************************* Shop the Unity Asset Store (affiliate): https://assetstore.unity.com/top-assets/top-paid?aid=1100lHSw Become A Channel Member: https://www.youtube.com/channel/UCkr9CPPqT9VWUjkpo3HcACg/join Or a Patron: https://www.patreon.com/onewheelstudio Grab a T-Shirt: https://onewheelstudio.com/merch/ My video and streaming kit: https://kit.co/onewheelstudio/tutorial-video-production Buy a Game Design Books: https://kit.co/onewheelstudio/game-design-reading-list-unity-c-blender-and-more Other Links ************ Discord: http://discord.onewheelstudio.com Twitter: https://twitter.com/OneWheelStudio Devlog: https://onewheelstudio.com/ Twitch: https://go.twitch.tv/onewheelstudio Video Gear List (Amazon Affiliate) *********************************** Sony A6100 Camera: https://amzn.to/32logXz Sigma 16mm 1.4 Camera Lens: https://amzn.to/3KA4Wr4 GoXLR (audio interface): https://amzn.to/35dmr03 Shure SM7B Mic: https://amzn.to/3fNbV1E Blue Mic Arm: https://amzn.to/3tHgwdQ Neewer Light: https://amzn.to/3rD8eRv Light Softbox: https://amzn.to/3GUaHgQ Neewer RGB Light: https://amzn.to/3rCTQJ9 Timestamps ************* 0:00 The Problem 0:20 How do Extension Methods help? 0:45 Side Note 0:56 How do they work? Why are they better? 2:40 Important Details 3:00 Basic Examples 3:25 Inheritance 3:45 Generics 4:10 THE END #cleancode #GameDevelopment #Unity3D #indiedeveloper
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.