I'm trying to use eval() in my script, but I keep getting this error about it:
(1,1): BCE0172: `UnityScript.Scripting.IEvaluationDomainProvider' interface member implementation must be public or explicit.
My code is only this:
var EvalString : String;
eval(EvalString);
And I removed pragma strict too, so I don't get what is happening here. Do you see something I am doing wrong?? Do I have to import something to use eval()?
**EDIT**:
What I am trying to do, is to have a GUI text area where the user can type in unityscript and when they press a play button in the game it will run the script that they typed into the text area.
↧