In 4.19, it is no longer possible to create a non-static custom thunk in a class. This was possible in 4.18.3.
REGRESSION:
Yes.
UPROPERTY(EditAnywhere, BlueprintReadWrite) TArray<FString> LineBuffer; UFUNCTION(BlueprintCallable, CustomThunk, Category = TestCat, meta = (CustomStructureParam = "AnyStruct")) void InitializeStruct(UProperty* AnyStruct); DECLARE_FUNCTION(execInitializeStruct) { LineBuffer.Add(TEXT("This is a test.")); }
RESULT:
The build fails with the following error: error C2228: left of '.Add' must have class/struct/union
EXPECTED:
The build completes successfully.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-58772 in the post.
0 |
Component | UE - Foundation - Cpp Tools - UnrealHeaderTool |
---|---|
Affects Versions | 4.19.1, 4.20 |
Created | May 7, 2018 |
---|---|
Resolved | May 8, 2018 |
Updated | Jul 14, 2021 |