magicleap / MagicLeapUnityExamples

This project contains Examples for the Magic Leap Unity SDK and has been configured so developers can start developing for the Magic Leap platform quickly.
Other
25 stars 16 forks source link

Compilation errors when opening the projects #1

Closed tonai closed 1 year ago

tonai commented 3 years ago

Hello, I have a lot of compilation errors (about 205) when I just try to open the project with a fresh new install of unity. Errors look like: Assets\MagicLeap\Examples\Scripts\HandTrackingExample.cs(16,17): error CS0234: The type or namespace name 'Core' does not exist in the namespace 'MagicLeap' (are you missing an assembly reference?)

How can I fix those errors ?

Nihav-Jain commented 3 years ago

Hi @tonai in your git clone, run the following command - git submodule update --init --remote and let us know if that fixes the compiler errors.

tonai commented 3 years ago

Thank you for your answer, it is indeed much better. Maybe a little update in the README file would be appreciated.

Also I noticed the following things:

I also tried to setup a project manually, following the Get started in Unity guide and I ran into an issue when trying to continue to the 2.0 Control Input - Unity tutorial.

The video is using a controller prefab that is located under a Assets/MagicLeap folder, but I don't know where this folder comes from. I don't have it in my newly created project. I see that this folder exists in this example project. So should I copy it into my new project ? Or is there a unity asset or something to import ?

Thank you in advance for your answer.

MadeinPh1la commented 1 year ago

Please ensure you're updated to the most current versions of our OS and SDK within the Magic Leap Hub, and follow the steps outlined starting here to install the correct tools. You should be in good shape from there.