Topic locked

GetTrackedObserverBehaviours() Null reference exception

January 15, 2022 - 10:11am #1

Hello,

 

My problem is that I get a null reference exception: Object reference not set to an instance of an object

with the VuforiaBehaviour.Instance.World.GetTrackedObserverBehaviours() method.

Is it possible to check if it will not return null ? If yes, how ?

I've checked the Vuforia Documentation but I didn't found anything...

 

Vuforia version : 10.1.4

Unity version : 2019.4.15f1

 

GetTrackedObserverBehaviours() Null reference exception

February 15, 2022 - 5:25am #4

Hey,

 

Can you elaborate on why you're using the GetTrackedObserverBehaviours method? 

 

Kind regards,

Patrick Scheper

Technical Community Manager

GetTrackedObserverBehaviours() Null reference exception

February 12, 2022 - 4:05pm #3

Hello!

I'm getting the same error. I use Unity 2020.3.3f1.

The error is: Object reference not set to an instance of an object

with the VuforiaBehaviour.Instance.World.GetTrackedObserverBehaviours() method.

I also tried checking if it is null with: if (VuforiaBehaviour.Instance.World.GetTrackedObserverBehaviours() != null) but now I'm getting the error on that line.

GetTrackedObserverBehaviours() Null reference exception

January 17, 2022 - 6:19am #2

Vuforia Engine is recommended to be used on Unity 2020.3 or above. I suggest upgrading to see if that fixes the issue.

 

Kind regards,

Patrick Scheper

Technical Community Manager

Topic locked