When mentioning the _Validate Suffix in code comment, Visual Studio compiler throws an error.

Steps to Reproduce
  1. Create a new blank C++ Project in Unreal
  2. Create a new C++ Actor Class
  3. In the header file declare & implement  the following functions
    void Fire();
    /* Mentioning ServerFire_Validate*/
    UFUNCTION(Server, Reliable, WithValidation)
    void ServerFire();

    4.Build Project Solution.


Result: Error: ServerFire_Validate: Is not a member of AMyActor

Expected: Compiler would ignore code comments.

Have Comments or More Details?

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

Login to Vote

ComponentCore - UnrealHeaderTool
Affects Versions4.224.234.24
Target Fix4.26
CreatedDec 13, 2019
UpdatedMar 3, 2020