Version: Unity 6 (6000.0)
LanguageEnglish
  • C#
Method group is Obsolete

Application.ExternalEval

Suggest a change

Success!

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.

Close

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.

Close

Cancel

Obsolete Application.ExternalEval is deprecated. See https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html for alternatives.

Declaration

public static void ExternalEval(string script);

Parameters

script The 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 obsolete.

Additional resources: Application.ExternalCall.