Published on

UE5 报错处理

Authors
  • avatar
    Name
    Ushen
    Twitter

GENERATED_BODY会报错:此声明没有存储类或类型说明符

#include "XXXX.generated.h"
这一行必须放在所有include的最后

include报错,使用include的方法找不到

在包含包时,加上前缀 ,例如Runtime/Engine/Classes/GameFramework/SpringArmComponent.h,
如果只用GameFramework/SpringArmComponent.h可能会找不到