ドキュメント

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 分最終更新 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.