Version: 2018.1
Method group is Obsolete

Application.ExternalEval

Switch to Manual
Obsolete public static void ExternalEval (string script);

Parameters

scriptThe Javascript function to call.

Description

Execution of a script function in the contained web page.

The HTML Javascript host page can have functions executed. The ExternalEval function specifies which function should be executed.

This functionality is now obsolete. See https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html for alternatives.

Note: The web player is not supported from 5.4.0 onwards.

See Also: Application.ExternalCall.