{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class Platform | App UI | 0.6.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Platform

    Utility methods and properties related to the Target Platform.

    Inheritance
    object
    Platform
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.AppUI.Core
    Assembly: solution.dll
    Syntax
    public static class Platform

    Fields

    Name Description
    baseDpi

    The base DPI value used in PanelSettings.

    Properties

    Name Description
    isTouchGestureSupported

    Whether the current platform supports touch gestures.

    magnificationGesture

    The magnification gesture data.

    magnificationGestureChangedThisFrame

    Whether the magnification gesture has changed this frame.

    mainScreenScale

    The main screen scale factor. The "main" screen is the current screen used at highest priority to display the application window.

    panGesture

    The pan gesture data.

    panGestureChangedThisFrame

    Whether the pan gesture has changed this frame.

    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

    Event triggered when a magnification gesture is received.

    panGestureChanged

    Event triggered when a pan gesture is received.

    systemThemeChanged

    Event triggered when the system theme changes.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)