Class Platform
Utility methods and properties related to the Target Platform.
Inherited Members
Namespace: Unity.AppUI.Core
Assembly: solution.dll
Syntax
public static class Platform
Fields
Name | Description |
---|---|
baseDpi |
Properties
Name | Description |
---|---|
isTouchGestureSupported | Whether the current platform supports touch gestures. |
magnificationGesture | |
magnificationGestureChangedThisFrame | |
mainScreenScale | The main screen scale factor.
|
panGesture | |
panGestureChangedThisFrame | |
referenceDpi | The DPI value that should be used in UI-Toolkit PanelSettings referenceDpi. This value is the value of dpi divided by the main screen scale factor. |
systemTheme | The current system theme. |
Methods
Name | Description |
---|---|
RunHapticFeedback(HapticFeedbackType) | Run a haptic feedback on the current platform. |
Events
Name | Description |
---|---|
magnificationGestureChanged | |
panGestureChanged | |
systemThemeChanged | Event triggered when the system theme changes. |