Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Null ref error
#1
I updated a project to Unity 2021 and that had Obi update as well but I now have some errors I can't seem to track down. 

NullReferenceException: Object reference not set to an instance of an object

Obi.ObiCapsuleShapeTracker.UpdateIfNeeded () (at Assets/Obi/Scripts/Common/Collisions/ColliderTrackers/Trackers3D/ObiCapsuleShapeTracker.cs:27)

The null reference seems to be looking for a collider but I'm not sure where it's supposed to be?

Full error:
NullReferenceException: Object reference not set to an instance of an object
Obi.ObiCapsuleShapeTracker.UpdateIfNeeded () (at Assets/Obi/Scripts/Common/Collisions/ColliderTrackers/Trackers3D/ObiCapsuleShapeTracker.cs:27)
Obi.ObiColliderBase.UpdateIfNeeded () (at Assets/Obi/Scripts/Common/Collisions/ObiColliderBase.cs:185)
Obi.ObiColliderWorld.UpdateColliders () (at Assets/Obi/Scripts/Common/Collisions/ObiColliderWorld.cs:361)
Obi.ObiUpdater.BeginStep (System.Single stepDeltaTime) (at Assets/Obi/Scripts/Common/Updaters/ObiUpdater.cs:54)
Obi.ObiFixedUpdater.FixedUpdate () (at Assets/Obi/Scripts/Common/Updaters/ObiFixedUpdater.cs:46)

Trying to post an image of the inspector fails as it says the post is too long. 
Reply


Messages In This Thread
Null ref error - by Giantbean - 08-12-2022, 07:48 PM
RE: Null ref error - by Giantbean - 09-12-2022, 04:51 PM