You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public ReturnResult Recibido(long code, string msg)
{
ReturnResult result = new ReturnResult
{
code = code,
msg = msg
};
return result; // try set the breakpoint in Unity editor here!
}
To tested the issue is from webgl side or the UnityHTTPServer side, I suggest to set a breakpoint as upper, and see if the break point is trigger or not.
If the breakpoint is triggered, then I think the issue is inside the WebGL build, maybe something like il2cpp script code strip etc.
Activity
sableangle commentedon Nov 22, 2024
could you please share the error message or console?
CodePitch commentedon Nov 22, 2024
I am trying to communicate from the Edge web browser to the unity editor where the httpserver is. If you type in the browser url directly:
it works correctly and returns a Json.
But if I make this request from a compilation in webGL it returns null (or I don't know how to get the json)
www.downloadhandler.text <--- is null
public ReturnResult Recibido(long code, string msg)
{
ReturnResult result = new ReturnResult
{
code = code,
msg = msg
};
return result;
}
Thanks!
sableangle commentedon Nov 25, 2024
To tested the issue is from webgl side or the UnityHTTPServer side, I suggest to set a breakpoint as upper, and see if the break point is trigger or not.
If the breakpoint is triggered, then I think the issue is inside the WebGL build, maybe something like il2cpp script code strip etc.