Log in or register to post comments

Unity Vuforia, PHP POST in C# or JS comunication

July 31, 2012 - 1:51pm #1

I have a strange question for anyone advanced in the extension, i want to comunicate to a php file some data when the tracker is found,

There are 2 ways i think it could happen.

The first ONE:

i created a JS file that comunicates with the php file (it works) , but i want to launch the js functions in the "tracker found" function  in the C# tracker file, is there any way to do that?

The second One:

I could communicate to the php file directly in C#, im geting an error using an example like this:

 

IEnumerator GetScores() { 
gameObject.guiText.text = "Loading Scores"; 
WWW hs_get = new WWW(highscoreURL);
yield return hs_get;
gameObject.guiText.text = hs_get.text; 
}

 

It says that the IEnumerator is not valid type of return or something like that.
If somebody knows that answer could also help me sending the longitude  and latitude in the post request to the file?

plz hlp

thanks!

 

Unity Vuforia, PHP POST in C# or JS comunication

August 9, 2012 - 1:50pm #2

IEnumerator expects your yield statement to return a value, which it is not.  Double check your highscoreURL and ensure it returns a value.

Log in or register to post comments