Skip to content

Fix UE5.8 compile error - #2348

Merged
chexiongsheng merged 3 commits into
Tencent:masterfrom
Edenlia:master
Jul 9, 2026
Merged

Fix UE5.8 compile error#2348
chexiongsheng merged 3 commits into
Tencent:masterfrom
Edenlia:master

Conversation

@Edenlia

@Edenlia Edenlia commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Fix UE5.8 compile error because of the deprecate of TMulticastScriptDelegate::ProcessMulticastDelegate

@chexiongsheng

chexiongsheng commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

这样改更简洁点,要不你改下?

        JsCallbackPrototypeMap[SignatureFunction]->Call(Isolate, Context, Info,
            [MulticastScriptDelegate = static_cast<FMulticastScriptDelegate*>(DelegatePtr)](void* Params)
            {
#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 8
                MulticastScriptDelegate->ProcessDelegate<UObject>(Params);
#else
                MulticastScriptDelegate->ProcessMulticastDelegate<UObject>(Params);
#endif
            });

@chexiongsheng

Copy link
Copy Markdown
Collaborator

clang-format检查没通过
你可以用clang-format -i 自动修复下,建议不linux(wsl)或者mac

@chexiongsheng
chexiongsheng merged commit 299216e into Tencent:master Jul 9, 2026
12 checks passed
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.

2 participants