How to Program in Unity: Hierarchical State Machine Refactor [Built-In Character Controller #5]

https://www.youtube.com/watc...
Learn how to program a Hierarchical State Machine in Unity with this new video break down and tutorial! Want to learn how to program state machines in Unity? This video will help get you there! Today we'll go over important concepts of the State Pattern and refactor our overly-complex code into a clean hierarchical state machine! With a detailed code walkthrough and guided explanation for every step along the way. ACCESS PROJECT FILES & SUPPORT THE CHANNEL: šŸ’› https://www.patreon.com/iHeartGameDev iHeartGameDev Merch: šŸ’› https://www.iheartgamedev.com WANT MORE? Check out previous videos in this growing series of tutorials: āœ… https://www.youtube.com/playlist?list=PLwyUzJb_FNeQrIxCEjj5AMPwawsw5beAy āœ¦ Like the vid? Please consider Subscribing! https://bit.ly/2YdIb6j āœ¦ Missed out on the last episode? https://youtu.be/bXNFxQpp2qk SOCIAL: āœ¦ Discord https://discord.gg/2AxUvsa āœ¦ Twitter https://twitter.com/NickyBoccuzzi LINKS FROM THE VIDEO: šŸ¤– Download Jammo for YOUR game: https://assetstore.unity.com/packages/3d/characters/jammo-character-mix-and-jam-158456 ā­ And Check Out @Mix and Jam ! https://youtube.com/MixAndJam GEAR: Lumix G7 Camera: https://amzn.to/3Kks1gZ Epomaker GK68 Keyboard: https://amzn.to/3Ke87EB Samson C01U Pro Mic: https://amzn.to/33kDdtG LG 27" Monitor: https://amzn.to/3qAHFwS Lepow 15.6" Portable Monitor: https://amzn.to/3287OtL Logitech G604 Mouse: https://amzn.to/3A6jNV4 Audio-Technica ATH-M50X Headphones: https://amzn.to/3tBaeMT X-Pen Artist 15.6 Pro Drawing Tablet: https://amzn.to/3FE5HLI Apple 15in MacBook Pro Laptop: https://amzn.to/3AbKdFc ā–ŗTIMESTAMPS: Intro: 0:00 Current Project Recap: 0:38 C# Naming Conventions: 2:10 Whats Wrong?: 4:24 State Machines Concepts PT 1: 5:10 Hierarchical State Machine Benefits: 5:55 State Machine Concepts PT 2: 6:30 State Machine Implementation: 7:54 Setting up Context: 8:58 Setting up Abstract State: 10:55 Concrete State Override Setup: 12:05 State Factory: 12:35 Switching States: 14:34 Concrete States Access Context & Factory: 15:48 Getters And Setters: 17:00 Moving Handle Jump Logic: 19:55 Updating Current State: 20:45 Splitting Handle Gravity Logic: 21:25 Require New Jump Press: 23:08 Hierarchical State Machine: 24:08 Updating Sub States: 27:45 Switching States Correctly: 28:33 Did You Notice?: 29:39 Final Result: 30:06
iHeartGameDev is a channel all about game development. Together we explore the ins and outs of the Unity game engine and learn best practices in programming through highly detailed tutorials that break everything down to be as beginner-friendly as possible. From character animations, to camera systems and so much more: there is so much to learn and share as we progress on our game dev journeys!
Subscribers