Quantcast
Channel: Questions in topic: "declare"
Viewing all articles
Browse latest Browse all 78

Can eval() declare functions (such as Update())

$
0
0
When i tried to make eval declare the Update function (like this:) function Start() { eval("function OnGUI(){ GUI.Box(Rect(310,20,300,50),"Test 123".ToString()); }"); } it said nothing, but it didn't work. Any tips? Thanks! -David

Viewing all articles
Browse latest Browse all 78

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>