Skip to content

Conversation

micheljung
Copy link

Added support for handling return values from Lua functions invoked via ULuaDelegate::ProcessEvent. The function now correctly detects the return parameter (CPF_ReturnParm) and writes the Lua return value back into the Parms struct using LuaState->ToProperty(...). This enables delegates like DECLARE_DYNAMIC_DELEGATE_RetVal to receive valid return values from Lua-bound callbacks.

Added support for handling return values from Lua functions invoked via
ULuaDelegate::ProcessEvent. The function now correctly detects the
return parameter (CPF_ReturnParm) and writes the Lua return value back
into the Parms struct using LuaState->ToProperty(...). This enables
delegates like DECLARE_DYNAMIC_DELEGATE_RetVal to receive valid return
values from Lua-bound callbacks.
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

Successfully merging this pull request may close these issues.

1 participant