文档

Unity Engine

Unity Engine

Switch

In the player on Nintendo Switch.
阅读时间1 分钟最后更新于 19 天前

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!"); }}