Application翻译:^牛^魔王
- absoluteURL
- backgroundLoadingPriority
- CancelQuit
- CanStreamedLevelBeLoaded
- CaptureScreenshot
- dataPath
- ExternalCall
- ExternalEval
- GetStreamProgressForLevel
- internetReachability
- isEditor
- isLoadingLevel
- isPlaying
- isWebPlayer
- levelCount
- loadedLevelName
- loadedLevel
- LoadLevelAdditiveAsync
- LoadLevelAdditive
- LoadLevelAsync
- LoadLevel
- LogCallback
- OpenURL
- persistentDataPath
- platform
- Quit
- RegisterLogCallbackThreaded
- RegisterLogCallback
- runInBackground
- srcValue
- streamedBytes
- systemLanguage
- targetFrameRate
- temporaryCachePath
- unityVersion
- webSecurityEnabled
Application.ExternalEval 外部运行
static function ExternalEval (script : string) : void
Description描述
Evaluates script snippet in the containing web page (Web Player only).
调用包含在网页中的片段脚本函数(只用于Web Player)。
This will execute JavaScript snippet script in the web page that contains the web player.
这将执行包含在网页中JavaScript片段script
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
Application.ExternalEval("history.back()");
}
}
// Navigates to the previous page
//返回前一页
Application.ExternalEval ("history.back()");
最后修改:2011年7月20日 Wednesday 13:04