Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Switch

In the player on Nintendo Switch™.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Switch = 32

Remarks

Examples

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