Returns the platform the game is running on (Read Only).
Use this property if you need to do some platform dependent work.
#pragma strict function Start() { if (Application.platform == RuntimePlatform.WindowsPlayer) Debug.Log("Do something special here"); }
using UnityEngine;
public class ExampleClass : MonoBehaviour { void Start() { if (Application.platform == RuntimePlatform.WindowsPlayer) Debug.Log("Do something special here"); } }
See Also: RuntimePlatform enum, SystemInfo class.
Did you find this page useful? Please give it a rating: