Play Directional Animations from Code ~ Making a Resource Gathering Game in Unity 2022 ~ PART 5

Опубликовано: 24 Июль 2026
на канале: Chris' Tutorials
1,739
35

As an alternative to blend trees for the sake of animating the tools for the character later on, I show how to play directional animations from code by creating an animations set that can decide which direction to return based on a facing input direction.

Gatherer's Exterior Pack Download
Itch.io ➣ https://chris-tutorials.itch.io/gathe...

Ko-fi Links
Full Project & Assets ➣ https://ko-fi.com/s/5063a0d7ad
Scripts Only ➣ https://ko-fi.com/s/f025cef198

Patreon Links
Full Project & Assets ➣   / 67997091  
Scripts Only ➣   / 79943145  

➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
  / christutorials  
https://linktr.ee/ChrisTutorials
https://chris-tutorials.itch.io/

◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/chr...
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25

00:00 - What to Expect
00:17 - Camera Background
00:41 - PlayMode Settings
01:41 - Unity Animator Component
04:27 - Creating Animation Clips
06:28 - Directional Animation Set ScriptableObject
12:10 - Setting Animation from PlayerController Script