"When releasing a product using UE4, you're signing up to pay Epic 5% of gross product revenue from users, regardless of what company collects the revenue. That means: If your game makes $10 on the App Store, Apple may pay you $7, but you'd pay Epic $0.50 (5% of $10)."
Still, you'd have to legally define end customer because you could have, as I pointed out, much more complex cases. I didn't search much, but couldn't find the actual fine print license to see how they did it, but they probably did it well and ironclad and don't need legal advice from a guy with no formal legal education. I stand humbled.
Being the guy who gets to spend tens to hundreds of thousands in legal fees to convince jury they aren't just trying to cheat someone out of their royalty.