Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity] Bug: 打包微信小游戏 webgl ,C#端的 async 异步方法返回的值为 undefine #1927

Open
3 tasks done
313364973 opened this issue Nov 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working Unity

Comments

@313364973
Copy link

前置阅读 | Pre-reading

Puer的版本 | Puer Version

2.1.0

Unity的版本 | Unity Version

2021

发生在哪个平台 | Platform

Other

错误信息 | Error Message

image

问题重现 | Bug reproduce

C#端编写一个异步方法
public async Task getFloat()
{
return 1;
}
编辑器模式下,运行是没有问题的,打包微信小游戏Webgl下 返回是个undefined
image
这是调用的方法

@313364973 313364973 added bug Something isn't working Unity labels Nov 26, 2024
@chexiongsheng
Copy link
Collaborator

webgl的问题到这里提:https://github.com/zombieyang/puerts_unity_webgl_demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Unity
Projects
None yet
Development

No branches or pull requests

2 participants