文档

Unity Engine

Unity Engine

referencePixelsPerUnit

The number of pixels per unit that is considered the default.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
public float referencePixelsPerUnit { get; set; }

Remarks

Sprites have a Pixels Per Unit that control the pixel density of the sprite. For sprites that have the same Pixels Per Unit as the Reference Pixels Per Unit in the Canvas, the pixel density will be one to one.