Coder Social home page Coder Social logo

magicleap / magicleapunityexamples Goto Github PK

View Code? Open in Web Editor NEW
21.0 6.0 16.0 67.43 MB

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.

License: Other

C# 70.42% ShaderLab 25.20% HLSL 4.38%
magicleap mixed-reality unity unity3d xr augmented-reality

magicleapunityexamples's People

Contributors

augustluhrs avatar babilinski avatar bsawyer-ml avatar kgrinberg-ml avatar nihav-jain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

magicleapunityexamples's Issues

Compatibility with ML1

Is this repository and its configurations only intended for use with Magic Leap 2 or is it also compatible with Magic Leap 1?

Compilation errors when opening the projects

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 ?

Error messages and Zero Iteration not working

Is this example supposed to work with SDK 0.26?

When I run the project (HelloWorld scene), I get following errors:

Error: Magic Leap XR Loader is not initialized, and the MLInput API must be started afterwards.
UnityEngine.XR.MagicLeap.MLInput:add_OnControllerButtonUp (UnityEngine.XR.MagicLeap.MLInput/ControllerButtonDelegate)
MagicLeap.ControllerTransform:Start () (at Assets/MagicLeap/Examples/Scripts/Utility/ControllerTransform.cs:50)

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.XR.MagicLeap.MLInput.GetController (System.Int32 controllerIndex) (at Packages/com.magicleap.unitysdk/APIs/Input/API/MLInput.cs:682)
UnityEngine.XR.MagicLeap.MLControllerConnectionHandlerBehavior.GetAllowedInput () (at Packages/com.magicleap.unitysdk/APIs/Input/Scripts/MLControllerConnectionHandlerBehavior.cs:129)
UnityEngine.XR.MagicLeap.MLControllerConnectionHandlerBehavior.Start () (at Packages/com.magicleap.unitysdk/APIs/Input/Scripts/MLControllerConnectionHandlerBehavior.cs:101)

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.XR.MagicLeap.MLInput.GetController (System.Int32 controllerIndex) (at Packages/com.magicleap.unitysdk/APIs/Input/API/MLInput.cs:682)
UnityEngine.XR.MagicLeap.MLInputModuleBehavior.AddController (System.Byte controllerId) (at Packages/com.magicleap.unitysdk/APIs/Input/Scripts/MLInputModuleBehavior.cs:552)
UnityEngine.XR.MagicLeap.MLInputModuleBehavior.Start () (at Packages/com.magicleap.unitysdk/APIs/Input/Scripts/MLInputModuleBehavior.cs:185)

Other problems:

  • Zero iteration doesn't work, the app just doesn't connect. What's the difference between "ML Remote > Launch Zero Iteration" and "Zero Iteration > Launch Zero Iteration"?
  • "Magic Leap > Print Version" prints "SDK version: 0.25.0.20210204", even though it should be 0.26. What's the problem here?

I have only 0.26 installed through "The Lab" package manager.

After trying quite a while to get it all running, I have to say it's an incredibly frustrating developer experience. There are so many dead ends, outdated example projects and inconsistent documentation.

WebRTC example not working

Hi developers! I tried installing the WebRTC example scene on ML2 and according to the instructions here a prompt is supposed to pop up at startup:

When your project builds, put on your Magic Leap 2 headset. Accept the prompts and your webRTC experience should begin. You’ll be able to tell because there’s a floating menu about webRTC, and your controller’s pointer beam will appear red. Behind the floating menu, you should see a screen asking you to enter a server address.

However, I didn't see any prompt window and all I saw through the headset was a static background like this
image
Am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.