question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ManualGazeControl.cs NullReferenceException

See original GitHub issue

I’m having some trouble getting Manual Gaze Control working with my project. After adding the component to the main camera and playing, I am getting:

NullReferenceException: Object reference not set to an instance of an object HoloToolkit.Unity.InputModule.ManualGazeControl.Awake () (at Assets/HoloToolkit/Input/Scripts/Utilities/ManualGazeControl.cs:46)

Am I missing something? Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
S-Hodgson-MMOARgamescommented, Jan 5, 2017

I’d suggest taking a look at the HoloLensCamera.prefab that implements it. Seems like it has some child objects that each have axis controller scripts attached. image

0reactions
MartinOrtizcommented, Apr 9, 2020

I am trying to use ManualGazeControl too…

I had the same issue, and fixed it (the assigning of the axis stuff).

So now, the look camera stuff works now, but none of the keys work… I tried the arrow keys, and w,a,s,z keys, none of them worked… The “Keyboard.Supported” is checked and enabled, but the arrow keys don’t work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - What is a NullReferenceException, and how do I fix it?
I have some code and when it executes, it throws a NullReferenceException , saying: Object reference not set to an instance of an...
Read more >
How can I fix the error: System.NullReferenceException
A NullReferenceException exception is thrown when you try to access a member on a type whose value is null. A NullReferenceException exception ...
Read more >
SpectatorView: Build Visual Studio SLN Crash · Issue #72
Following these instructions to build the Hololens app and Unity crashes everytime I try to 'Build Visual Studio SLN' HoloToolkit -> Build ...
Read more >
How to Fix NullReferenceException in C#! (4 Step Process)
Let's learn what is a NullReferenceException, what causes it and a Step-by-Step process for how to Fix NullReferenceException in C#!
Read more >
System.NullReferenceException while trying to load a view
I am trying to load DataMgmt.cshtml view by clicking on a link from my _Layout page but the page which should be loaded...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found