Midnite Oil Software LLC | Unity Tip: Abstracting User Input @midniteoilsoftware | Uploaded June 2023 | Updated October 2024, 7 hours ago.
In this Unity Tutorial video I describe how to abstract user input in Unity and why you should do that.
The video is a response to comments on my Joust tutorial video and in it I explain the Observer pattern as well as other topics like decoupling, abstraction, separation of concerns, the "Bridge Pattern" and the "Gang of Four", dependency injection & inversion of dependency (one of the S.O.L.I.D. principals) and the many benefits of applying these patterns including making refactoring easier, allowing different implementations of a dependency without affecting downstream consumers as well as making your code testable by allowing the implementations to be "mocked".
Be sure to wish list my upcoming Highland Panic game on Steam
store.steampowered.com/app/2391990/Highland_Panic/?beta=0
You can also join the beta program for the iPhone version
testflight.apple.com/join/3mtIkaAv
Open beta for Android on Google Play will be coming soon.
Watch my guest appearance on The Game Dev Show
youtube.com/live/wX4xtwBy1Fc
If you'd like to offer any suggestions or comments or have any questions join my Discord and post them there:
discord.gg/wrdqXPtw9y
In case you'd like to show your support by buying me a coffee:
ko-fi.com/gregorybradburn
Grab my free Object Pool Manager from the Unity Asset Store
assetstore.unity.com/packages/tools/utilities/object-pool-manager-227215?aid=1100lzsEu
Unity Asset Store
Top New Assets: assetstore.unity.com/top-assets/top-new?aid=1100lzsEu
Top Downloads: assetstore.unity.com/top-assets/top-download?aid=1100lzsEu
If you're thinking of subscribing to any Unity subscription products, use these links:
Unity Plus: https://prf.hn/click/camref:1100lzsEu/destination:https://store.unity.com/products/unity-plus
Unity Pro: https://prf.hn/click/camref:1100lzsEu/destination:https://store.unity.com/products/unity-pro
Unity Learn Premium: https://prf.hn/click/camref:1100lzsEu/destination:https://unity.com/learn-premium
Unity Partner Courses: https://prf.hn/click/camref:1100lzsEu/destination:https://unity.com/learn/partner-courses
#unitytuturial #unity2d #unity3d #madewithunity #designpatterns #abstraction #dependencyinjection #decoupling #input #userinput #indiegamedev #indiedev #indiegames
In this Unity Tutorial video I describe how to abstract user input in Unity and why you should do that.
The video is a response to comments on my Joust tutorial video and in it I explain the Observer pattern as well as other topics like decoupling, abstraction, separation of concerns, the "Bridge Pattern" and the "Gang of Four", dependency injection & inversion of dependency (one of the S.O.L.I.D. principals) and the many benefits of applying these patterns including making refactoring easier, allowing different implementations of a dependency without affecting downstream consumers as well as making your code testable by allowing the implementations to be "mocked".
Be sure to wish list my upcoming Highland Panic game on Steam
store.steampowered.com/app/2391990/Highland_Panic/?beta=0
You can also join the beta program for the iPhone version
testflight.apple.com/join/3mtIkaAv
Open beta for Android on Google Play will be coming soon.
Watch my guest appearance on The Game Dev Show
youtube.com/live/wX4xtwBy1Fc
If you'd like to offer any suggestions or comments or have any questions join my Discord and post them there:
discord.gg/wrdqXPtw9y
In case you'd like to show your support by buying me a coffee:
ko-fi.com/gregorybradburn
Grab my free Object Pool Manager from the Unity Asset Store
assetstore.unity.com/packages/tools/utilities/object-pool-manager-227215?aid=1100lzsEu
Unity Asset Store
Top New Assets: assetstore.unity.com/top-assets/top-new?aid=1100lzsEu
Top Downloads: assetstore.unity.com/top-assets/top-download?aid=1100lzsEu
If you're thinking of subscribing to any Unity subscription products, use these links:
Unity Plus: https://prf.hn/click/camref:1100lzsEu/destination:https://store.unity.com/products/unity-plus
Unity Pro: https://prf.hn/click/camref:1100lzsEu/destination:https://store.unity.com/products/unity-pro
Unity Learn Premium: https://prf.hn/click/camref:1100lzsEu/destination:https://unity.com/learn-premium
Unity Partner Courses: https://prf.hn/click/camref:1100lzsEu/destination:https://unity.com/learn/partner-courses
#unitytuturial #unity2d #unity3d #madewithunity #designpatterns #abstraction #dependencyinjection #decoupling #input #userinput #indiegamedev #indiedev #indiegames