The GUI function of Unity is good, but something could be better ....
... The GUI elements could be built from the server generated JSON string dynamically. That should include the CSS alike style, function callback and linked variables... etc.
(a thought from a lazy man :p)
Yes. here it is ...
[ web-player ]
http://homepage.mac.com/antonioh/unity3d/build/interface_v004.html
can you help me with json????? why is this not working?
var data ='{"error":0,"username":"Redial"}'; var form = new WWWForm(); form.AddField( "data", data ); var download = new VVVV(My_url, form); yield download; var myHash= eval(download.text); Debug.Log(myHash['username']);
when i do that i get
MissingFieldException: Field 'System.String.Chars' not found.
Boo.Lang.Runtime.DynamicDispatching
but when i do this...
Debug.Log(myHash);
i get this...
{"error":0,"username":"Redial"}
JeffMeJones 5 months ago
Very nice !!
Now don't look at your draw call stats ;)
daslolo 11 months ago
Very nice
Now don't look at your draw call stats ;)
daslolo 11 months ago