Hello everyone,
While developing a project in Unity for the Magic Leap 2 device, I've encountered a few issues. Since there are numerous questions, I believe it's best to consolidate them into one topic rather than creating multiple threads.
The questions I'm hoping to find answers to are as follows:
- How can I directly run the application from Unity onto the device? I've faced an issue when attempting to run the scene on the app simulator; despite initiating the application, the simulator fails to display it. Currently, I'm utilizing device streaming to observe the device output, yet I encounter difficulties projecting the application from Unity onto the device stream.
- In the device stream, there's a black background rendered behind the scene, which is not present on the headset. How can I eliminate this black background? I've tried to change the background of my XR main camera, but it seems like this setting gets overwritten during the build.
- The Unity application always loads in portrait mode despite setting the orientation to landscape in both the scene and player settings within the Android tab.
- Camera capturing isn't possible when the device stream is active.
- Lastly, I would like to collect logs from the application. I've tried various methods, and the only way that worked for me was using a custom UI logger and displaying logs on the scene. This works fine for some cases, but I need to be able to list all application logs. I attempted to use Debug.Log() and then read from the Log tab in Device Bridge, followed by the tutorial provided at Unity Debugging via Visual Studio | MagicLeap Developer Documentation, but nothing worked.
Unity Editor version: 2022.3.22f1
ML2 OS version: 1.6.0
MLSDK version: 2.1.0
Host OS: Windows 11