Switch
In the player on Nintendo Switch.
읽는 시간 1분최근 업데이트: 20일 전
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Switch = 32
Remarks
Additional Resources: RuntimePlatform, Platform dependent compilation.
Examples
using UnityEngine;public class ExampleClass : MonoBehaviour{ void Example() { if (Application.platform == RuntimePlatform.Switch) Debug.Log("Do something special here!"); }}