LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.
Method group is Obsolete

Application.ExternalEval

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.