There was a problem with the use of the Web Player.> u.getUnity().SendMessage()
you can pass the required parameters,but is undefined when outputting SendMessage.I want to pass the continuously updated variables to Unity,However, SendMessage implements only one parameter pass
var data = "{\"data\":[{\"x_coordinate\":\"-6.2100000000\",\"y_coordinate\":\"10.5400000000\",\"z_coordinate\":\"1.5000000000\"}]}";
function ReceiveData()
{
u.getUnity().SendMessage("ReceiveForWebManager","ReceiveDataForWeb",data);
console.log(SendMessage);
}
↧