I have created a small project which works fine in windows. However I switched to WEBGL
project loaded to web server I can access project and it appears fine however:
save to mysql is not working
I cant access data from mysql and a very simple exit button:
public void Closecourse()
{
Application.Quit();
}
}
application quit wouldn’t do anything (since it cannot close browser from javascript)
although regular javascript does have window.close(); to close tab, but if you want to hide your webgl player,
could redirect to different page, or use regular javascript to hide webgl div… and display some Thanks message etc.
check browser console for errors (F12 in most browsers)
OK thanks for very quick reply quite obvious I guess on application quit…the access to mysql is more of a question:
I have got this working in windows version by using:
usual code around:
using (UnityWebRequest www = UnityWebRequest.Post(rootURL + “saveposition.php”, form))
but I get no errors in the Webgl code and no changes in the database …I can logon so its accessing the database fine. but cant seem to be able to create a new user or to change user data