Version: 5.3
public static void ExternalEval (string script);

파라미터

script The Javascript function to call.

설명

Evaluates script function in the containing web page.

This will execute JavaScript script function in the web page that contains the web player or WebGL content.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { Application.ExternalEval("history.back()"); } }