可以通过设置渲染分辨率比例和屏幕分辨率解决模糊的问题,与抗锯齿无关

This commit is contained in:
2025-10-08 15:22:38 +08:00
parent 3f8c38b000
commit 8c612d19e2
8 changed files with 12 additions and 36 deletions

View File

@ -14,7 +14,6 @@ end
function LevelFoxRole:OnMoveDirectionChanged(InDirection)
-- 运动组件更新方向响应函数
local cur_animation
if Vector2D.Equals(InDirection, Vector2D.Zero) then -- Idle的情况
local forward_direction = self["MovementComponent"]:GetForwardDirection()
if(forward_direction.Y >= 0) then
@ -29,12 +28,10 @@ function LevelFoxRole:OnMoveDirectionChanged(InDirection)
cur_animation = "Move/Back"
end
end
-- if cur_animation ~= self.last_animation then
print("changed", cur_animation)
self["SpineAnimationComponent"]:SetAnimation(0, cur_animation, true)
self.last_animation = cur_animation
-- end
if cur_animation ~= self.last_animation then
self["SpineAnimationComponent"]:SetAnimation(0, cur_animation, true)
self.last_animation = cur_animation
end
end