Compilation will fails with an error on TSubclassOf<UDEPRECATED_SomeData>
Add the following code to a project and compile (Make to update XXX_API macro):
--------------------------------------------
UCLASS(Deprecated)
class GYMCODE424_API UDEPRECATED_SomeData : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadOnly)
FText Message;
};
/**
*
*/
UCLASS()
class GYMCODE424_API ASomeTestsGameModeBase : public AActor
{
GENERATED_BODY()
public:
// UFUNCTION(BlueprintImplementableEvent)
UFUNCTION(BlueprintImplementableEvent, meta = (DeprecatedFunction, DeprecationMessage = "Use OnNewDataReceivedEvent() instead."))
void OnDataReceivedEvent(TSubclassOf<UDEPRECATED_SomeData>& InData_DEPRECATED, const FHitResult& HitResult);
//void OnDataReceivedEvent(TSubclassOf<UObject>& InData, const FHitResult& HitResult);
UFUNCTION(BlueprintImplementableEvent)
void OnNewDataReceivedEvent(FText& InMessage, const FHitResult& HitResult);
UPROPERTY(meta = (DeprecatedProperty, DeprecationMessage = "Data is Depricated member"))
UDEPRECATED_SomeData* Data_DEPRECATED;
UPROPERTY(EditAnywhere)
FHitResult DefaultHitResult;
protected:
void BeginPlay() override {};
};
--------------------------------------
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-87673 in the post.
1 |
Component | UE - Foundation - Cpp Tools - UnrealHeaderTool |
---|---|
Affects Versions | 4.24.1 |
Target Fix | 5.0 |
Created | Jan 29, 2020 |
---|---|
Resolved | Jul 23, 2021 |
Updated | Nov 1, 2021 |