Add Additional Non-Asset Directory to Package from a Plugin

Hi!

I have developed a plugin with some Non-Asset files. When I have tried to package these files from the plugin are missing.

I have tried to add the folder here:

In the Additional Non-Asset Directories to Package, but I get an error message saying that the plugin’s folder is not in the Game’s Content folder.

How can I package the Non-Asset files from the Plugin?

Thanks!

Hi!

I have found the answer here: Third-Party Libraries | Unreal Engine 4.27 Documentation | Epic Developer Community

I have done this on my plugin’s build C# file:

RuntimeDependencies.Add(Path.Combine(PluginDirectory, "Extras/..."), StagedFileType.UFS);

And don’t forget to add this also:

using ``System.IO``;

Hope it helps!