Null ref error - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Null ref error (/thread-3688.html) |
Null ref error - Giantbean - 08-12-2022 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. RE: Null ref error - Giantbean - 09-12-2022 I think it was an Obi Rigidbody that was disabled. I couldn't tell from the error but after messing with things It seems to be working again. |