语言英语
  • C#

RuntimePlatform.WindowsPlayer

描述

在 Windows 上的播放器中。

其他资源:RuntimePlatform平台相关编译

using UnityEngine;

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

Did you find this page useful? Please give it a rating: