Rider link with ue5

当我使用UE5创建c++项目时,不能够成功编译,报错如下:

  Expecting to find a type to be declared in a module rules named 'RD' in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.  This type must derive from the 'ModuleRules' type defined by Unreal Build Tool.

之后找到RiderLink.uplugin文件,发现对于模块的类型定义为:

"Type": "Editor"

我尝试将其改为:

"Type": "Program",

后编译成功,请问我这样改是否有什么隐患呢?或者说贵公司为何不直接将这个类型设置为Program呢?

0
1 comment
Hello Yifan,

Thank you for contacting Rider support.
It seems like you have RiderLink plugin installed in Engine. It doesn't work with UE from Epic Games starting from UE5 preview because of [this third-party](https://youtrack.jetbrains.com/issue/RIDER-64042) issue. In short: with UE5 installed from Epic Games launcher, RiderLink can only work while being installed in Game, not Engine.
Would you mind trying the following steps and letting me know if it doesn't help?

* Open your project in Rider;
* Select `File | Settings | Languages & Frameworks | Unreal Engine | Install RiderLink in Game`. It will move the RiderLink plugin from UE folder to the game project folder.

Please let me know if it doesn't help.
Have a nice day!
0

Please sign in to leave a comment.