-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Depricated Dependencies #77
Comments
Hi @autuus! In issue #57, my second comment says that the If you do need to use the |
Here is the diff for that replacement code: c282ca3 |
okay, got it, when i exit play mode ArgumentException: Scene to unload is invalid |
Enabling oculus touch Scene 'Hover/InputModules/OculusTouch/Scenes/HoverInputModule-OculusTouch' couldn't be loaded because it has not been added to the build settings or the AssetBundle has not been loaded. |
Hmm, I'm not sure what might be happening regarding Leap Motion. If the Leap Motion controller is not tracking properly, you'll want to make sure the device is turned on, connected, and that your Leap Motion SDK is imported correctly, etc. On the Hover UI Kit side, please be sure to review the various Getting Started pages, and also the Input Modules and Leap Motion pages. Following the steps and instructions on these pages will avoid many issues while getting Hover UI Kit setup for your app.
This error message is telling you what Unity requires -- the scene must be added to the "Scenes In Build" list in the "Build Settings" menu. |
Im making an augmented/virtual reality OS https://autuus.itch.io/avros With leap motion + zed stereocamera and oculus, no sensors needed, its completely mobile ^^ |
Okay then, leap works in my other project though.. Lets see if I can crack this code. |
Okay, adding the scene to build didnt work screenshot https://imgur.com/a/WjPgrOA |
The error message tells you which scene must be added. In the case of the error message you provided above, the additional scene is "Hover/InputModules/OculusTouch/Scenes/HoverInputModule-OculusTouch". In your screenshot, there is only one scene present in the list (the "KeyboardPixels" example scene). |
Also, please note that Hover UI Kit only supports one input module at a time. In you screenshot, it appears you're trying to use both the Oculus and Leap Motion input modules together. |
Good to know, but only none has a camera, so I just make new camera, or is it none + 1 more? |
The cameras are present in the Input Module scenes. For example, in the "HoverInputModule-OculusTouch" scene, you'll find both the "OVRCameraRig" prefab and the "LocalAvatar" prefab. In the "KeyboardPixels" example, these scenes are loaded at runtime by whichever (one) child of "InputSceneLoaders" that you enable. For example, the "OculusTouch" child object has a "Hover Scene Loader" component that performs this action. This information is described in the wiki pages I linked above. I know it can be a drag to read through the documentation, but it's going to save you from a lot of headaches while getting started with Hover UI Kit. |
Hmm, looks like my error was that I didnt import leap motion sdk. Lets see if I'm able to import it properly.. |
Hmm, it says missing prefab on all imput module scenes https://imgur.com/a/mQBgLZf |
I can't tell from your screenshot -- do you have the Leap Motion SDK imported into your Unity project? This scene is trying to find the "LMHeadMountedRig" prefab, which is provided by the Leap Motion SDK. |
yeah, I had to copypaste it, since its not in asset store. it works but maybe its not detected by this code |
You can download Leap Motion's Unity SDK (called "Core Assets") here: If you copy-pasted some SDK assets, be sure to also include the "*.meta" files. If those files are not included, Unity will re-create them, and the script/prefab references will be lost. |
Okay, once more, I download the 2.0.0B, Import the depricated version of Image Effects, import oculus integration and leap, fix the broken function, and come to the epic conclusion, it doesn't work. no errors, just no hand and no camera. |
Test
ConclusionLeap Motion SDK v4.4.0 has breaking changes for Hover UI Kit's Leap Motion input module. That's frustrating. Looks like this version was released about three weeks ago. WorkaroundYou can use Leap Motion Core Assets 4.3.4 (download here) for now, until I can implement a new version of the input module. |
GetRotation' of
UnityEngine.Matrix4x4'
Okay, got it working finally. I still do get an error, ArgumentException: Scene to unload is invalid When exiting debug mode. any recommendations on how to fix this? |
Here's a version for the ones that want it to just work, without invested effort. |
…from Leap Motion's "Unity Core Assets 4.4.0" package, and left the previous scene with a "-Pre-4-4-0" suffix (#77).
…nloadSceneAsync" method with a string "scene name" parameter (#77).
Thanks for uncovering the issue caused by the new Leap Motion assets! I have just posted the new Hover UI Kit v2.0.1B release. This release fixes the Leap Motion issue and other compatibility-related issues that have arisen over the past year or so. Please give it a try, and let me know whether it resolves the issues you were having. I have also updated the Input Module > Leap Motion page with notes about compatibility. |
Assets/Hover/InputModules/OculusTouch/Scripts/OculusTouchCursor.cs(120,36): error CS1061: Type
UnityEngine.Matrix4x4' does not contain a definition for
GetRotation' and no extension methodGetRotation' of type
UnityEngine.Matrix4x4' could be found. Are you missing an assembly reference?Hmm..
Its discussed here #57 but I don't know how to import that function... since i dont know how to use this keyword in C#
So i just commented it out, there was another error about editor, but i commented that out, so, it didnt work.
Hover-UI-Kit-2.0.0B
The text was updated successfully, but these errors were encountered: