Plugin Development - Couldn't find module rules for module XYZ

Hi,

I try to develop a plugin for UE4.3 and I’m following the tutorial in the wiki. During the build I get an error saying “Couldn’t find module rules for module ‘XYZ’”.

My questions are now:

  • What are the module rules?
  • Where to place them?

Hope you can help me :slight_smile:

ModuleRules is a C# class that’s part of UnrealBuildTool, every module you create needs to define a ModuleRules subclass in a .Build.cs file. If you name your module MyModule, then you need to create a MyModule.Build.cs file that contains a ModuleRules subclass named MyModule. There are various build settings you can set in .Build.cs to let UBT know how to build your module.