Fix compatibility issues with Vuforia: GazeTransform initialization.
See original GitHub issueWhat I’m doing
- I’m using Vuforia framework in combination with Hololens Toolkit and for some reason the DefaultCursor.prefab that I’m using (or any other cursors) the position is set somewhere else.
How did I found/investigated
- At first I thought that Cursor.cs would be the main cause of setting the position different but after further investigations I found out that in the GazeManager.cs the
GazeTransform
receivesCamera.MainTransform
atprotected override void Awake()
and this sets the position a bit different (moves from center)
The fix
- The fix is easy, I’ve moved
GazeTransform
fromAwake
toStart
method and everything is working correctly right now.
I would like to know if i can make a pull request regarding to issue.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Vuforia failed to initialize...
To solve this, I deleted the Vuforia folder from my project. Then created an ARCamera game object. you will be prompeted to import...
Read more >Vuforia Engine Initialization Error, but not the first time
Hello everyone,. I'm developping an iOS and android app with Vuforia and Unity. Everything is fine, recognition and everythings are working good!
Read more >AR/VR Vuforia Failed to Initialize
Under the 'Vuforia' menu, click 'Configuration', then disable the 'webcam' setting.
Read more >Migration Guide for Vuforia Engine Unity Projects
At the same time, we are maintaining backwards compatibility wherever possible and ensuring that migration is as simple as possible for your Unity...
Read more >Vuforia init error - juicycleff/flutter-unity-view-widget
Hi, I'm working in a flutter + Unity + Vuforia app and when I ... I could fix it by setting Delayed Initialization...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have fun !
For the moment it’s a bit challenging, but in time (as more and more people start to use hololens) it’s going to get much more easier.
P.S If you want to play with Vumarks from Vuforia, before anything don’t forget to refill your coffee cup 😃
Regards
Yes, and everything was working fine.
Regarding to any other scripts, I’m almost sure that Vuforia framework with ARCamera.prefab or VuMark.prefab might have an impact on changing the position, because If I don’t use it (at all, removing the .dll so it doesn’t load at startup) the position is staying in the middle (correctly)
I’ve did the PR here