1
\$\begingroup\$

I currently have in a web page, on a localhost server, some information that I want to use in Unity. My problem is that this information are stored in some js variables.

I tried to use the WWW class in a coroutine, but I only get the html source code. Is there a way to get the value of this variables inside Unity Editor ?

Thanks !

\$\endgroup\$
1
\$\begingroup\$

There is this page on Unity and browser communication: http://docs.unity3d.com/Manual/UnityWebPlayerandbrowsercommunication.html

If you are doing something different you may want to consider wrapping it in a RESTful API. The webpage then returns JSON/XML which you can parse to get your data out.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.