question

BahadrAKAR-0421 avatar image
0 Votes"
BahadrAKAR-0421 asked SethDu-MSFT commented

Open a same project on HL2 & iPad

Hi there,
I would like to know how can I play a unity project on more than one HL2 device and iPad device in the same time?

Thank you,

hololens-development
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Do you want to use something like MRC on iPad or make your application able to run on these two platforms?

0 Votes 0 ·

Make my application able to run on these two platforms.

Thank you,

0 Votes 0 ·

You can use Unity's Conditional Compilation feature:
https://docs.unity3d.com/Manual/PlatformDependentCompilation.html

0 Votes 0 ·

Thank for answering Billy,

Frankly, I couldn't figure out exactly for Conditional Compilation where should I start is there any source like Microsoft doc? Also, could you provide information for MRC on iPad/surface tablet, please?

0 Votes 0 ·

1 Answer

SethDu-MSFT avatar image
0 Votes"
SethDu-MSFT answered SethDu-MSFT commented

Hello, welcome to Microsoft Q&A,

If you want to maintain only one project and this project can be deployed to HoloLens2 and iPad OS, you may follow Billy’s reference about Conditional Compilation feature and adding platform specific codes so that unnecessary codes will be commented when targeting to the other platform.

While if you simply want iPad to have the same view when the project is running on HoloLens 2, MRC is required to stream the views on HoloLens. To learn more about MRC, please refer to https://docs.microsoft.com/en-us/windows/mixed-reality/develop/advanced-concepts/mixed-reality-capture-overview. In the common scenario, it is required to build a separate app that is implemented with Mixed Reality Streaming HTTP requests.


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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Seth,

I will check the links definitely. The last question is, What If I want to maintain one project, and this project is deployed on four HoloLenses2 on a local computer & network? Is there any info/Microsoft doc about that?

Thank you,

0 Votes 0 ·

Would you create a new thread and describe your requirement in detail? Please understand this will help us track the question. Thanks for your understanding.

0 Votes 0 ·