Returns the platform the game is running (Read Only).
function Start () { if (Application.platform == RuntimePlatform.WindowsPlayer) print ("Do something special here!"); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Start() { if (Application.platform == RuntimePlatform.WindowsPlayer) print("Do something special here!"); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Start() as void: if Application.platform == RuntimePlatform.WindowsPlayer: print('Do something special here!')