target里包含是符合预期的,UBT在编译的过程中只是过滤Editor的module,而不是过滤plugin
例如有些plugin里面又有Runtime的,又有Editor的模块,那么编译的时候只会包含runtime的module,比如paper2D.uplugin
最主要的原因是UBT无法区分哪些插件是editor only的,只有在uproject或uplugin中引用的plugin字段里,标记了TargetAllowList的uplugin才会被直接过滤掉
"Plugins": [ { "Name": "XXX", "Enabled": true, "TargetAllowList": [ "Editor" ] } ]