Patches

Device Info

Device Info

Access information about the simluated or connected phone, tablet or computer.

Device Info

  • Screen Size
  • Screen Scale
  • Orientation
  • Uses a Mouse
  • Device

Screen Size

The size of the screen, in points. Use Size Unpack to get the individual width and height.

Screen Scale

A number that represents the density of screen pixels per device-independent pixel (ex: iPhone has 2 pixels per point)

Orientation

A number that represents the physical device orientation, in degrees.

Uses a Mouse

A boolean that is true when the device accepts mouse interactions (as opposed to touch).

Device

A text string that represents the name of the connected or simulated device.