In the previous advanced lessons, we learned how to switch animations using Blend Trees and how to combine upper and lower body movements using Animator Layers and Avatar Masks. In this lesson, we ...
Last time, we used a 1D Blend Tree to switch between Idle, Walk, and Run based on the Speed value. This time, we will use two values for horizontal and vertical directions. Let's handle AnimationClips ...
Unity 2D并非3D的简化版,而是一套独立的渲染、物理与输入体系。理解其核心原理——正交投影坐标系、Physics2D物理世界、新输入系统(Input System Package)——是突破‘拖完Sprite就卡住’困境的关键。技术价值在于规避默认设置陷阱:如Pixels Per Unit不一致导致碰撞错位、Built-in渲染管线对Sprite Tint的 ...
捕鱼游戏是典型的2D动作类交互范式,其核心涉及Unity物理引擎响应、AI行为状态机、UI数据绑定与对象池优化等基础技术概念。本文围绕Unity 2019.4 LTS环境下可编译运行的捕鱼项目源码,深入剖析Rigidbody2D碰撞判定、FishState枚举驱动的轻量级AI状态流转、以及基于LayerMask和Tag的四层碰撞过滤机制。技术 ...