Description

None of the Set functions in the UWindDirectionalSourceComponent are able to be called from code. The functions can be called from Blueprint, but without the ENGINE_API macro, none of the functions are exposed to be called from code.

REGRESSION:
No. It was not possible to add a UWindDirectionalSourceComponent to a code class in 4.19.

Steps to Reproduce
  1. Create a new Basic Code project.
  2. Add a new Actor code class to the project.
  3. At the top of the new Actor's header file, add the following line: #include "Components/WindDirectionalSourceComponent.h"
  4. Add a UWindDirectionalSourceComponent UPROPERTY to the new Actor class.
    • eg:
      UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = TestCat)
      UWindDirectionalSourceComponent* TestComp;
      
  5. Create a default subobject for the property in the Actor's constructor.
  6. Add a function to the Actor that calls the SetStrength() function in the component.
    • eg: TestComp->SetStrength(5.f);
  7. Build the project.

RESULT:
The build fails with a LNK2019 error.

EXPECTED:
The build completes successfully.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-64803 in the post.

1
Login to Vote

Fixed
ComponentGameplay - Components
Affects Versions4.224.20.3
Target Fix4.22
Fix Commit4507593
Main Commit4736445
Release Commit4862694
CreatedOct 4, 2018
ResolvedOct 25, 2018
UpdatedFeb 12, 2019