I’ve tried specifying the folder **/Game/UI/GamepadIcons/XboxOne/ **in the additional asset directories to Cook/Package/Copy, both using a pak file and not. I can’t make any combination of these settings result in the texture being copied to the final packaged folder
Can anyone show me what I’m doing wrong here? I’ve seen a few other threads on this issue but no clear answer on whether it is meant to work or known to be broken.
I’m going to bump this thread once a week until I have time to dig into the repo or until I die, whichever comes first.
I’ve been working around this on Windows by copying the extra content out of the Saved\Cooked folder after the build. But I haven’t found a simple workaround on mobile since the build and packaging are a bit more integrated. On Android I’d have to unzip the APK, throw the files in and then re-sign.
So I finally tracked down this issue in the master branch. You can see my answer here. The short story is that the staging copy system ignores folders whose name matches a platform string i.e. “XboxOne” unless you are building for that platform.
The confusing part here is that if you use a pak file, the folder will be packaged regardless of name. Really there needs to be a checkbox for when you aren’t using a pak file that lets you explicitly choose to “Strip Files for Other Platforms”. And the tooltip could read “Hey, don’t name your folders after a platform name unless you want to waste 3 months of your life”
I’m guessing that most UE4 staff aren’t even aware of this, or else my answerhub post would have probably been flagged for using a folder with name XboxOne.