기술 자료

Unity Engine

Unity Engine

pixelPerfect

Forces pixel alignment for elements in the canvas. It only applies when Canvas.renderMode is set to Screen Space.
읽는 시간 1분최근 업데이트: 20일 전

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.