Legacy Documentation: Version 2018.1 (Go to current version)
  • C#
  • JS

Script language

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

Method group is Obsolete


Suggest a change


Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.


Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.



Obsolete public static method ExternalEval(script: string): void;
Obsolete public static void ExternalEval(string script);


scriptThe Javascript function to call.


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.

Did you find this page useful? Please give it a rating: