Give us as much detail as possible regarding the issue you’re experiencing:
Unity Editor version: 6000.1.5f, Unity 2022.3
ML2 OS version: v1.12.0
Unity SDK version: 2.6.0
Host OS: Windows, MacOS
My name is Junsu Song, a graduate student at POSTECH (Pohang University of Science and Technology) in South Korea. I am currently working with the Magic Leap 2 Developer Pro device and am attempting to deploy content developed in Unity onto the headset.
I got to know more about the Magic Leap 2 device through your documentation and guides, which were incredibly helpful.
I was able to successfully set up my Unity environment using the Magic Leap Setup Tool available on the Unity Asset Store.
However, I am currently encountering an issue I cannot resolve.
After importing and applying the Magic Leap Setup Tool in Unity, when I try to Build or Build and Run for Android, Unity does not export an APK file. Instead, it prompts me to select a folder, as shown in the attached screenshots.
I did not enable the “Export Project” option, so I don’t understand why it’s prompting me to select a folder instead of exporting an APK.
This time, I tried setting everything up based on the instructions in the following YouTube video:
However, the same issue still occurred.
I tested this on both Windows and macOS, using Unity 2022.3 LTS and Unity 6, and the result is the same — the build process always asks for a folder instead of generating an APK.
Could you please help me understand why this is happening?
In addition, I have a few more questions:
-
In many YouTube videos and guides, I see that there is a Magic Leap tab under Preferences > External Tools.
However, as shown in my screenshot, I do not see that tab in my setup. I’d like to understand why it’s missing. -
In Magic Leap Hub 3, under the Developer tab, I have set the custom ADB path as follows:
/Applications/Unity/Hub/Editor/6000.1.5f1/PlaybackEngines/AndroidPlayer/SDK/platform-tools/adb
Is this the correct setup, or is there another recommended configuration?
I’m very excited about building content using Magic Leap 2 and sharing XR experiences with others. I truly appreciate the tools and ecosystem you provide, and I would be grateful for your help in resolving this issue.