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 {};
};
--------------------------------------
How does TextureRenderTarget2D get TArray<uint8> type data?
Why does the REMOVE method of map container remove elements have memory leaks?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
How to delete some elements correctly when deleting an array loop?
How do I set a material as a post-processing material?
UMG RichText not appear image when packaged
What does the number (2152,1-34) in glsl error mean?
How does TArray loop correctly remove elements in blueprints?
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 |