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
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 |