I’m trying to set up a new plugin. There seems to be some gaps in the plugin documentation, which is admittedly easy to do, even I find it hard to write appropriate documentation since you don’t know what people won’t know.
I’m getting pretty frustrated trying to make any of it work. This is what I have right now:
It doesn’t even try to build the plugin before saying it can’t link to it. Is this how the plugin is meant to be set up? This is one of the areas the docs are lacking in, they don’t show context for anything that they discuss.
Somehow on the weekend I even ended up with plugin files in the UE4 project, which actually tried to load! I can’t seem to replicate this accident though. Even weirder, after uninstalling and reinstalling UE 4.8, the errant files were still in the UE4 base project. I ended up deleting them since they wouldn’t stay placed in the correct folder structure.
Also a bit of a mystery: any files I make end up in the Intermediate folder. Why not the source folder? The VS project structure seems to have no relation to the real directory structure.
Anyone know how this is meant to be set up?
Oh yeah, this is the example I’m following: https://docs.unrealengine.com/latest/INT/Programming/Plugins/index.html#pluginexamples - it flat out doesn’t work. Among other things, following the step for copying the plugin** destroys the plugin it came from** while not relocating the copied files. I get what’s going on - but the person who wrote it probably doesn’t realise that VS doesn’t create new files - it only links to the old ones. As soon as I rename something the original BlankPlugin breaks. I think this is how I got my original attempt to load, but there’s no way of telling how you’d make a genuinely new plugin.
Update: So I read between the lines, found the files in the normal windows file explorer and copied them to my project. Then I loaded them into VS and set up the structure again. Then I loaded them into the structure again because moving them around in the project view seems to kill its links to them. Lo and behold, it actually worked after an initial failure to build. I really wasn’t expecting that to work after the last two weeks of banging my head against this.
I’d be happy to update this tutorial now that I’m intimately familiar with the holes in it. It’s part of the main github repo, right? I could fix it up and do a pull request?