添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

I can successfully call InternalGetUsername() from Start(). When I trace out the username inside of the function, it logs into the web browser correct. However, when I try to return that value back into Unity it comes back as an empty string. Any idea why?

I’ve tried it using _malloc, as well as gameInstance.Module._malloc.

PS: The docs need to be updated to use stringToUTF8 and not the deprecated writeStringToMemory … as well as whatever is going wrong here, if its not my own fault.