If a UFUNCTION takes a pointer to a component as a parameter, the project cannot be built if the component's class is marked as deprecated. The error message that is provided states that the property should be marked as deprecated as well, but adding _DEPRECATED to the end of the parameter name, or marking the UFUNCTION as deprecated does not resolve the error message.
UFUNCTION(BlueprintCallable, Category = TestCat) void Add(UMySceneComponent* Component);
RESULT:
The build fails with the following error: LogCompile: Error: Property is using a deprecated class: /Script/TESTDeprecated2.MySceneComponent. Property should be marked deprecated as well.
EXPECTED:
The build completes successfully.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-61906 in the post.
6 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.18.3, 4.19.2, 4.21 |
Target Fix | 5.0 |
Fix Commit | 17014970 |
---|
Created | Jul 18, 2018 |
---|---|
Resolved | Aug 2, 2021 |
Updated | Dec 1, 2021 |