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

从unlua侧调用C++静态函数,参数转换失败。 #737

Open
bayzhen opened this issue Dec 17, 2024 · 0 comments
Open

从unlua侧调用C++静态函数,参数转换失败。 #737

bayzhen opened this issue Dec 17, 2024 · 0 comments

Comments

@bayzhen
Copy link

bayzhen commented Dec 17, 2024

我自定义了一个C++静态函数ACyLuaAbilityActor::BroadCastGameplayTag,参数是一个FGameplayTag。我创建了一个GA蓝图,然后在蓝图中绑定了lua脚本。然后在lua脚本中调用C++的静态函数,并传入一个FGameplayTag参数。经过debug后发现,unlua中FGameplayTag是有参数的,但C++中FGameplayTag为None。此问题通过把ACyLuaAbilityActor::BroadCastGameplayTag从静态转为普通函数而解决。如需更详细的信息欢迎联系我。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant