I followed the example of the UObject Plugin in the engine but nothing happens when I build it no matter what I add into my plugin (even if its wrong syntax the build succeeds). I’m not sure if I added the folder in the right spot or i’m missing a file but it seems to just skip over my plugin code. I can share my code if needed.
The instructions that Unreal has in their documentation isn’t that good. What you need to do to make a UObject plugin is go to the unreal git hub and download the engine source code. Find the setup batch file and let it download all the files then go into the plugin folder through windows file explorer (not within the explorer in visual studios) and copy the UObject plugin folder. Rename everything in the folders the name you want your plugin to be. Then to into the engine folder and search for generateprojectfiles batch file and run that. If you have errors running that then that means you didn’t not name your folders and files consistently enough. Once your project files have successfully loaded go into the visual studio project file that was generated and check your plugin files to make sure they are named exactly the way you wanted. You can then build your project and have no problems. If that was confusing people tell me and I will try my best to be more clear
You can also use Unreal Editor’s plugin wizard to create a Blank plugin.
- Edit > Plugins
- New Plugin
- Blank Plugin
It includes a dependency on CoreUObject (in 4.9.2), but you’ll have to add the UObject include yourself. (The example UObject plugin adds it to the PCH file.)
Some other differences: UObject has fewer dependencies, some code is (I think unimportantly) different, and there’s no MyPluginObject files.