pixelPerfect
Forces pixel alignment for elements in the canvas. It only applies when Canvas.renderMode is set to Screen Space.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.UIModule
public bool pixelPerfect { get; set; }
Remarks
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.