Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


WindowsPlayer

In the player on Windows.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
WindowsPlayer = 2

Remarks

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { if (Application.platform == RuntimePlatform.WindowsPlayer) { Debug.Log("Do something special here!"); } }}