RuntimePlatform.Android

RuntimePlatform.Android

Description描述

In the player on Android devices.

在Android平台的播放器中。

See Also: Platform dependent Compilation.

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		if (Application.platform == RuntimePlatform.Android)
			Debug.Log("Do something special here!");
		
	}
}
if (Application.platform == RuntimePlatform.Android)
	Debug.Log("Do something special here!");
最后修改:2011年5月23日 Monday 12:48

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。