Class Platform
Utility methods and properties related to the Target Platform.
Inherited Members
Namespace: UnityEngine.Dt.App.Core
Syntax
public static class Platform
Properties
mainScreenScale
The main screen scale factor.
Declaration
public static float mainScreenScale { get; }
Property Value
Type | Description |
---|---|
Single |
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.
Declaration
public static float referenceDpi { get; }
Property Value
Type | Description |
---|---|
Single |
systemTheme
The current system theme.
Declaration
public static string systemTheme { get; }
Property Value
Type | Description |
---|---|
String |
Methods
RunHapticFeedback(HapticFeedbackType)
Run a haptic feedback on the current platform.
Declaration
public static void RunHapticFeedback(HapticFeedbackType feedbackType)
Parameters
Type | Name | Description |
---|---|---|
HapticFeedbackType | feedbackType | The type of haptic feedback to trigger. |
Events
systemThemeChanged
Event triggered when the system theme changes.
Declaration
public static event Action<string> systemThemeChanged
Event Type
Type | Description |
---|---|
Action<String> |