Hey,
I keep getting this error in my Capsule Hand code:
NullReferenceException: Object reference not set to an instance of an object
Leap.Unity.CapsuleHand.BeginHand () (at Assets/LeapMotion/Scripts/Hands/CapsuleHand.cs:131)
Leap.Unity.IHandModel.Update () (at Assets/LeapMotion/Scripts/Hands/IHandModel.cs:57)
I am still able to run my programs (I am working in unity). However, I would like to try and solve this problem before I run into any trouble with it. The lines in code it is referencing is below:
public override void BeginHand() {
base.BeginHand();
if (hand_.IsLeft) {
jointMat.color = _leftColorList[_leftColorIndex];
_leftColorIndex = (_leftColorIndex + 1) % _leftColorList.Length;
} else {
jointMat.color = _rightColorList[_rightColorIndex]; //THIS IS LINE 131 WHERE IT IS SAYING THE ERROR IS OCCURRING
_rightColorIndex = (_rightColorIndex + 1) % _rightColorList.Length;
}
}
It is coming up for both the Right and Left Capsule Hand. Any help is awesome.
Thank you
-David