pixelPerfect
Forces pixel alignment for elements in the canvas. It only applies when Canvas.renderMode is set to Screen Space.
Read time 1 minuteLast updated 4 days ago
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.