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

小白问一个C++使用LuaFunction的问题 #583

Open
Fflyqaq opened this issue Mar 4, 2024 · 1 comment
Open

小白问一个C++使用LuaFunction的问题 #583

Fflyqaq opened this issue Mar 4, 2024 · 1 comment

Comments

@Fflyqaq
Copy link

Fflyqaq commented Mar 4, 2024

以前使用unity+tolua的时候,我可以在c#中声明一个类似luafunction的结构。
然后在lua中,直接给其赋值一个function,就可以在c#中进行调用。

slua有提供类似的结构可以使用吗?
还是说我必须使用ue的DECLARE_DYNAMIC_DELEGATE来实现类似功能?

@zjhongxian
Copy link
Collaborator

你说的是FLuaBPVar 吧?它可以做到类似功能

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

2 participants