Clean Animation Logic in Code vs Mechanim Animator State Machine for Unity 2022 2D RPG Tutorial
Chris' Tutorials
Showing how you can control your animation switching in code without using any transitions between animations in the Unity animator mechanim. This simplifies switching states when all you need is to change the playing animation at immediate moments and avoids some of the extra complexity. Works pretty well for 2D games that don't need blending between animations.
Scripts and Assets ➣ https://www.patreon.com/posts/72534240
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me https://www.patreon.com/christutorials https://chris-tutorials.itch.io/ https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥ Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect 00:25 - Demo 00:57 - Player Controller Script 02:36 - Scriptable Object for Storing Animation Strings 03:52 - Code vs Mechanim Animator 05:41 - Animation Event Unlock Movement 06:29 - UnityEvents to Call OnHit and OnDeath 09:59 - Calling Unlock Animation as an Animation Event ... https://www.youtube.com/watch?v=v4nACx3uErM
41654733 Bytes