在插件目录下有一个 TestMySql.uplugin 文件,代码如下:

'{ "FileVersion": 3, "Version": 1, "VersionName": "1.0", "FriendlyName": "TestMySQL", "Description": "", "Category": "Other", "CreatedBy": "", "CreatedByURL": "", "DocsURL": "", "MarketplaceURL": "", "SupportURL": "", "CanContainContent": true, "IsBetaVersion": false, "IsExperimentalVersion": false, "Installed": false, "Modules": [ { "Name": "TestMySQL", "Type": "Runtime", "LoadingPhase": "Default", //"WhitelistPlatforms":["Win64"] } ] }'。

要指定插件仅在 Windows 64 位平台上加载,您需要取消注释 '“WhitelistPlatforms":["Win64"]' 这一行,并将其添加到 'Modules' 部分的相应位置。修改后的 .uplugin 文件如下所示:

{
    "FileVersion": 3,
    "Version": 1,
    "VersionName": "1.0",
    "FriendlyName": "TestMySQL",
    "Description": "",
    "Category": "Other",
    "CreatedBy": "",
    "CreatedByURL": "",
    "DocsURL": "",
    "MarketplaceURL": "",
    "SupportURL": "",
    "CanContainContent": true,
    "IsBetaVersion": false,
    "IsExperimentalVersion": false,
    "Installed": false,
    "Modules": [
        {
            "Name": "TestMySQL",
            "Type": "Runtime",
            "LoadingPhase": "Default",
            "WhitelistPlatforms": ["Win64"]
        }
    ]
}

这样,插件将仅在 Windows 64 位平台上加载。请确保在您的插件项目中保存了修改后的 .uplugin 文件,并重新编译和运行项目以使更改生效。

Unreal Engine 插件 Windows 64 位平台加载限制

原文地址: https://www.cveoy.top/t/topic/bSto 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录