Hello, Welcome to Microsoft Q&A,
Please note that a HoloLens app built by Unity is also a UWP app. And since the straight UWP app deployed on HoloLens 2 can work, the problem seems more likely to be on Unity side. If you want to get support from Unity, you can access Unity Forum.
If you want to review further on HoloLens side, you can open a ticket via aka.ms/HLSupport.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.