Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ExternalEval(string)

Execution of a script function in the contained web page.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. Application.ExternalEval is deprecated. See https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html for alternatives.
public static void ExternalEval(string script)

Parameters

script

The Javascript function to call.

Remarks

The HTML Javascript host page can have functions executed. The Application.ExternalEval function specifies which function should be executed.
This functionality is now obsolete. For alternative approaches, refer to Interaction with browser scripting.
Note: The Web Player is obsolete.
Additional Resources: Application.ExternalCall.