Hi, for my game I need to change the spring of some hinge joints and also the motors.
But I get this errors:
Cannot modify a value type return value of UnityEngine.HingeJoint.motor'. Consider storing the value in a temporary variable. Cannot modify a value type return value of
UnityEngine.HingeJoint.spring’. Consider storing the value in a temporary variable
What’s even worse is that unity documentation doesn’t help at all, since it has the same mistake in there: Unity - Scripting API: HingeJoint.spring
So, how can I save the spring of an hinge joint inside a variable?
Thanks in advance