Click or drag to resize

DisplayDevice Class

A simple display device which inherits from ScriptableObject and can be saved in Unity assets.
Inheritance Hierarchy
SystemObject
  Object
    ScriptableObject
      TouchScript.Devices.DisplayDisplayDevice
        TouchScript.Devices.DisplayGenericDisplayDevice

Namespace:  TouchScript.Devices.Display
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class DisplayDevice : ScriptableObject, 
	IDisplayDevice

The DisplayDevice type exposes the following members.

Constructors
  NameDescription
Public methodDisplayDevice
Initializes a new instance of the DisplayDevice class
Top
Properties
  NameDescription
Public propertyDPI
DPI of the game based on NativeResolution and NativeDPI.
Public propertyName
Name of the display device.
Public propertyNativeDPI
Native DPI of the display device.
Public propertyNativeResolution
Native resolution of the display device.
Top
Methods
  NameDescription
Protected methodOnEnable
OnEnable Unity method.
Public methodUpdateDPI
Forces to recalculate DPI.
Top
Fields
  NameDescription
Protected fielddpi
Serialized device DPI.
Protected fieldname
Serialized device name.
Protected fieldnativeDPI
Native device dpi.
Protected fieldnativeResolution
Native device resolution.
Top
See Also