Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


referencePixelsPerUnit

The number of pixels per unit that is considered the default.
Read time 1 minuteLast updated 4 days ago

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.