使用dotween动画,物体移动不平滑解决

unity 解决使用dotween动画移动不平滑

使用dotween动画,物体移动不平滑解决
相机上的PixelPerfect默认是勾上的,官方说可以使大多数2D显示足够平滑,但是我取消勾选PixelPerfect之后,才得以解决dotween移动不平滑的情况。期间也尝试使用update去写移动,但是仍然不能解决问题。官方也说了,取消勾选后,可能会起到更好的作用。

官方解释:
Force elements in the canvas to be aligned with pixels. Only applies with renderMode is Screen Space.
Enabling pixelPerfect can make elements appear sharper and prevent blurriness. However, if many elements are scaled or rotated, or use subtle animated position or scaling, it may be advantageous to disable pixelPerfect, since the movement will be smoother without.
强制画布中的元素与像素对齐。屏幕空间仅适用于renderMode。
启用pixelPerfect可使元素显得更清晰并防止模糊。但是,如果缩放或旋转了许多元素,或者使用了微妙的动画位置或缩放,则禁用pixelPerfect可能是有利的,因为如果不这样做,移动将更加平滑。