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
I have this code : cb: (msg) =>
{
Debug.Log(string.Format("CallFromJS[{0}]", msg));
isReceived = true;
status.text = msg;
square.GetComponent().material.color = Color.red;
},. However after receive message from webview, only Debug.Log works, canvas and gameobject only work after i click on screen again. I want to modify canvas immediately after webview send message. Anyone has solution?
The text was updated successfully, but these errors were encountered:
Sorry for missing, canvas is status and gameobject is square. I want they react when receive message from webview by (status.text = msg;
square.GetComponent().material.color = Color.red;) however they dont change as i want until i click the screen again. I try Canvas.ForceUpdateCanvases() but it dont work
I guess you utilize the WebGL version. The implementation is based on iframe so focusing may become an issue. Please try to set Run In Background in Project Settings/Player/Resolution and Presentation.
I have this code : cb: (msg) =>
{
Debug.Log(string.Format("CallFromJS[{0}]", msg));
isReceived = true;
status.text = msg;
square.GetComponent().material.color = Color.red;
},. However after receive message from webview, only Debug.Log works, canvas and gameobject only work after i click on screen again. I want to modify canvas immediately after webview send message. Anyone has solution?
The text was updated successfully, but these errors were encountered: