This article only briefly introduces the method of creating custom modules
1. Create a new project and create the new module we want to add in the Source folder 2. And create 3 files with
.h .cpp .Build.cs suffixes in the newly created NewModule folder
3. Enter VS to build NewModule (filter ) and drag the newly created 3 files in the folder just now into NewModule
4. Add content for NewModule.Build.cs (copy directly from TestModule.Build.cs in our project)
Pay attention to the name to ensure that the correct modification
will also You can copy the .h and .cpp files, and you also need to pay attention to the modification of the name
5. Enter the uproject of the project and add our new module
6. Finally, add a new module name to .Target.cs in the project. Both
.Target.cs suffixes need to add the module name
7. Close the project and recompile VS, Create Actor under NewModule
so that our custom module is displayed!
If there is a problem, close the project and just open VS and recompile.