Unreal 插件制作Bug 解决记录

1.添加调试 InputComponent->BindKey 时无法编译 查看所在模块的 Build.cs中在

    PrivateDependencyModuleNames.AddRange(new string[] { "Core", "Slate", "InputCore", });

也许时其中之一但加入后编译失败解决。

2.
···
InputComponent->BindKey(FKey(“I”), IE_Pressed, this, &AKDXStereHMDController::AddFocusPlaneDis);
InputComponent->BindKey(FKey(“I”), IE_Repeat, this, &AKDXStereHMDController::AddFocusPlaneDis);
···

3.. 编辑器下的宏定义

#if WITH_EDITOR
#endif

猜你喜欢

转载自blog.csdn.net/MrLeoLi/article/details/80054145