public void UploadUserData() // 点击按纽,调用此函数
{
WX.cloud.CallFunction(new CallFunctionParam()
{
name = "SetUserData",
success = response =>
{
print("设置用户数据成功");
print(response.result);
print(response.requestID);
},
});
unity编辑器提示如下:
EntryPointNotFoundException: WXCallFunction
WeChatWASM.Cloud.CallFunction (WeChatWASM.CallFunctionParam param) (at Assets/WX-WASM-SDK/Cloud.cs:72)
据官方专员解释,云函数无法在unity编辑器中调试,只能在开发者工具或真机上测试