2023 here. I got a plugin from Marketplace and after a few hours of fighting with it I finally managed to get it included in the packaked game. This was in UE 5.2 built from source. I did the following:
- Copy the plugin folder to Engine/Plugins/Marketplace
- Create a C++ class to convert the project from BP to C++
- Rebuild the Engine
- Go to ProjectName/Source/ProjectName/
- Open ProjectName.build.cs
- Add plugin names PublicDependencies. In my case it was like this: “PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “UINavigation”, “NiagaraUIRenderer” });”
NOTE: You can find the plugin name by navigating to the plugin folder and opening the .uplugin file in your IDE - Rebuild the project in your IDE
After these steps I packaked the game and plugins got included.