RuntimePlatform.Switch

Description

In the player on Nintendo Switch.

using UnityEngine;

public class ExampleClass : MonoBehaviour { void Example() { if (Application.platform == RuntimePlatform.Switch) Debug.Log("Do something special here!"); } }
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答