UHT does not correctly create generated code for BlueprintNativeEvent UFUNCTIONs in an interface that return const values. In the corresponding .gen.cpp file, the generated code does not include the const keyword for the return type, resulting in a build failure due to different type modifiers on the function.
REGRESSION:
No.
public: UFUNCTION(BlueprintNativeEvent, BlueprintCallable) const float TestMethod() const;
const float IMyInterface::TestMethod_Implementation() const { const float TestVar = 42.f; return TestVar; }
RESULT:
The build will fail with the following error: error C2373: 'IMyInterface::TestMethod': redefinition; different type modifiers
EXPECTED:
The build completes successfully
How does TextureRenderTarget2D get TArray<uint8> type data?
Why does the REMOVE method of map container remove elements have memory leaks?
How to delete some elements correctly when deleting an array loop?
UMG RichText not appear image when packaged
How do I set a material as a post-processing material?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-62943 in the post.
2 |
Created | Aug 15, 2018 |
---|---|
Resolved | Nov 30, 2018 |
Updated | Feb 12, 2019 |
4995 - GlassBeaver |