For people who are looking for the answer and don’t want to read engine source, I got the answer.
To compile your plugin only for specific platforms, you can add a PlatformAllowList
property to your plugin’s modules inside the uplugin
. Here’s an example:
{
"FileVersion": 3,
"Version": 1,
"VersionName": "1.0",
"FriendlyName": "Game Plugin",
"Description": "Contains very cool things",
"Category": "Other",
"CreatedBy": "Me!"
"Modules": [
{
"Name": "GamePlugin",
"Type": "Runtime",
"LoadingPhase": "Default",
"PlatformAllowList": [ "Win64" ]
}
]
}
This will make the plugin only compile for WIndows when packaging. You can modify the PlatformAllowList above to compile for other platforms.