docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCurrentPlatform

    GetCurrentPlatform()

    Get the current platform for the purposes of provider selection Ths will return the value of Application.platform, except in the editor in playmode if the Override Platform in Playmode setting is enabled. Then it will use the selected override platform.

    Declaration
    public static RuntimePlatform GetCurrentPlatform()
    Returns
    Type Description
    RuntimePlatform

    The runtime platform which should be used in provider selection

    In This Article
    Back to top
    Copyright © 2024 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)