Myvideo

Guest

Login

How to Program in Unity: State Machines Explained

Uploaded By: Myvideo
3 views
0
0 votes
0

Learn the fundamentals of programming State Machines in Unity with this new video break down! This tutorial explains important concepts of the State Pattern, and how to use State Machines when programming! Today we will walk through an example project to showcase the benefits of using state, the state pattern and state machines in Unity! This is the first episode in a new series of videos on this channel: Programming for Production. In this series, we'll take relatively complex software development topics and try to break them down in easy-to-understand way. Let's take our programming skills to the next level! SUPPORT THE CHANNEL: 💛 iHeartGameDev Merch: 💛 WANT MORE? Interested in learning more about animating characters in Unity? Check out my growing series of tutorials: ✅ ✦ Like the vid? Please consider Subscribing! ✦ Missed out on the last episode? SOCIAL: ✦ Discord ✦ Twitter LINKS FROM THE VIDEO: 🤖 Download Jammo for YOUR game: ⭐ And Check Out @mixandjam ! GEAR: Lumix G7 Camera: Epomaker GK68 Keyboard: Samson C01U Pro Mic: LG 27“ Monitor: Lepow 15.6“ Portable Monitor: Logitech G604 Mouse: Audio-Technica ATH-M50X Headphones: X-Pen Artist 15.6 Pro Drawing Tablet: Apple 15in MacBook Pro Laptop: ►TIMESTAMPS: Intro: 0:00 The Problem: 0:40 What is State: 0:57 Anything Can Have State: 1:42 What does State do: 2:04 What is the State Pattern: 2:38 Bad-Implementation Apple Pseudocode: 3:08 Making it more complex: 5:04 Why This is bad: 5:55 How do we use the state pattern to fix this: 6:51 Finite State Machine Explained: 7:18 State Machine Implementation Explained: 8:25 Implementation Example Begins: 9:48 Creating Current State and Instances: 11:17 Defining Methods: 11:50 Setting Current State and using State Methods: 13:20 Running Update within State: 14:15 Switching States: 14:59 OnCollisionEnter: 16:44 Finishing the Example State Machine: 17:03 Finished Product and Benefits: 17:27

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later