简体   繁体   中英

FPointDamageEvent error "incomplete type is not allowed" (Unreal Engine 5.1)

The instructor in the C++ course I'm following used this code here, and I copied it exactly: Code the course instructor used

But I get this error. Not sure what to do. I know that the instructor is doing this in 4.27 and I'm doing it in 5.1. Did something change between those two versions that may have caused this error? How to I get around it? The error I'm receiving

Here's my whole function for reference: Whole function

I also faced this problem. Here is the workaround. For UE5.1 you need to write this in your file, #include "Engine/DamageEvents.h".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM