steamvr_unity_plugin
steamvr_unity_plugin copied to clipboard
Hand: NullReference if attachementFlag set to DetachFromOtherHand and second hand is missing
Error Line: Hand.cs 349
Actual Code: if (attachedObject.HasAttachFlag(AttachmentFlags.DetachFromOtherHand))
Expected Code: if (attachedObject.HasAttachFlag(AttachmentFlags.DetachFromOtherHand) && otherHand)
I believe otherHand should always be defined. If the controller hasn’t been turned on yet it should still have a reference to the script instance
Are you seeing a scenario where this is not true?
Hi, sorry for long answer. In my case it was fallback hand.
Duplicate of #130