Hi everyone,
I have a module within a plugin that rely on dataset files. This file is added as a non-UFS FRuntimeDependency
in the module *.Build.cs
(see code below). On Windows, when I package my project, the dataset is copied into the packaged game, but this does not work on macOS. Note that UFS dependencies are not included either in the macOS package. Am I missing something ?
Thanks for your help
MyPlugin.uplugin
:
{
"FileVersion": 3,
"Version": 1,
"VersionName": "1.0",
"FriendlyName": "My Plugin",
"Description": "A description for my plugin",
"Category": "Misc",
"CreatedBy": "Me",
"CreatedByURL": "",
"DocsURL": "",
"MarketplaceURL": "",
"SupportURL": "",
"CanContainContent": true,
"IsBetaVersion": false,
"IsExperimentalVersion": false,
"Installed": false,
"Modules": [
{
"Name": "MyModule",
"Type": "Runtime",
"LoadingPhase": "Default"
}
],
"Plugins": [
{
"Name": "AnotherPlugin",
"Enabled": true
}
]
}
MyModule.Build.cs
:
using UnrealBuildTool;
using System.IO;
public class MyModule : ModuleRules
{
public MyModule(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core"
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"CoreUObject",
"Engine",
"Projects",
"AnotherModule"
}
);
RuntimeDependencies.Add(
Path.Combine(PluginDirectory, @"Resources\MyDatasetFolder\*"),
StagedFileType.NonUFS
);
}
}