docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPlayerType

    GetPlayerType()

    Returns the DotsGlobalSettings.PlayerType Client or Server based on if a dedicated server platform is selected in the build settings or not.

    Declaration
    public DotsGlobalSettings.PlayerType GetPlayerType()
    Returns
    Type Description
    DotsGlobalSettings.PlayerType

    Returns the DotsGlobalSettings.PlayerType for the build.

    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)