Skip to content

"Object reference not set to an instance of an object" #1

@HomeStarRunnerTron

Description

@HomeStarRunnerTron

Thank you so much for creating this incredible program! So-- to preface, I've never tried using Unity before today. I found this when trying to find something that could record motion tracking data of the headset + controllers to use in, like, Blender or some such. For animation purposes. I'm assuming that once it's all linked up, there's a possible way to nab that information for that kind of use, but maybe I'm totally mistaken. All of this is brand-new to me.

So the stuff I did was:

  • Open up the entire Oculus-Linkintosh master folder as a project in Unity
  • Build and run the project w/ Android as my platform, and my Oculus Quest 2 selected under Run Device. It boots up, and I see the standard Unity void. My controllers don't show up in the void until I press a menu button.
  • I use the same Oculus-Linkintosh folder for the Client steps, because when I tried to copy Scripts/Client and Scripts/Models into a different project, it said the project became corrupted.
  • I create an object-- just a Cube. Then I attach LTClient & LTDeviceSimulator to it.
  • I drag the LTDeviceSimulator panel into the Simulator value in the LTClient panel. Not sure if that's what meant by "setup the reference".
  • I type in what I THINK is my headset local address-- the IP address found in my Oculus' Wi-Fi settings.
isws
  • Then, I try to hit run, and I get this error.
NullReferenceException: Object reference not set to an instance of an object
LTClient.Start () (at Assets/Scripts/Client/LTClient.cs:20)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <b904252b6b4e4277834bcca7e51f318d>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

I'm probably doing a million things wrong-- thank you in advance for reading this. All the best!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions