原教程地址:https://youtu.be/AmGSEH7QcDg
部分代码:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerAnimator : MonoBehaviour { private const string IS_WALKING = "IsWalking"; [SerializeField] private Player player; private Animator animator; private void Awake() { animator = GetComponent<Animator>(); } private void Update() { animator.SetBool(IS_WALKING, player.IsWalking()); } }Player.cs
重点记要:
1.添加后处理的操作为:在Global Volume上添加override,之后可添加Tonemapping、Color Adjustments、Bloom、Vignette等
2.角色逻辑、角色动画逻辑、角色输入分离,动画中需要用到的参数可通过在角色动画的script里借助如下来实现分离。
SerializeField] private Player player;
3.
View Code标签:动画,Player,private,player,Unity,胡闹,using,KitchenChaos,animator From: https://www.cnblogs.com/lofu/p/18017366