For some reason my Xbox button UI icons were appearing as white squares only when I packaged the game.
After hours of troubleshooting, I determined that the cause of this were that they were in a folder called “XboxOne”.
I can reproduce this by creating a new project, importing any texture to a folder called “XboxOne” and displaying it either by UMG or by material to a mesh, then packing the game. The texture will not show in the packaged game, however rename the folder to something else and it will.
Who knew that the name of the folder could cause something like this?
Not 100% sure but when a game is packaged for XboxOne, it goes into a folder called XboxOne. Where abouts are you putting the folder called XboxOne and where is it when you have packaged your game?
It may be due to naming conventions as XboxOne might be reserved for the actual packaged XboxOne builds.
Nope, it doesn’t make a difference if it’s in other folders such as Content/UI/Buttons/XboxOne or just Content/XboxOne.
I was thinking that might be most probable case, but perhaps this should be investigated anyway as there should be probably some safeguard (either not letting the user make a folder named that, or raising an error when they try to build) for reserved names other than just having textures not load, which was evidently not a very informative way to tell me as I had to spend 6 hours figuring it out
Of course, for now I have just renamed the folder as a workaround.
Thank you for the report. I was able to reproduce this internally and have entered a report, for reference UE-16583. I will keep you informed as we investigate a solution to this issue.