跪求大神,不允许指针指向不完整的类类型是怎么回事,求解

图片说明

class UInputComponent 的头文件是否包含。。。

要引入#include "Runtime/Engine/Classes/Components/InputComponent.h"
因为UInputComponent类所在的头文件是InputComponent.h
看这个网页的最后就可以看到
https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/UInputComponent/index.html