I can read the value just fine using:
Debug.Log( selectedMeshSkinnedCloth.coefficients[i].maxDistance )
But changing it does nothing:
selectedMeshSkinnedCloth.coefficients[i].maxDistance = 0.5f;
Is this a bug? Or are you not able to change these with code???
Have you tried getting the existing coefficient object into a variable, changing the maxDistance value in the variable and then assigning it back to the array?
ClothSkinningCoefficient coeff = selectedMeshSkinnedCloth.coefficients[i];
coeff.maxDistance = 0.5f;
selectedMeshSkinnedCloth.coefficients[i] = coeff;
Sir, you are a gentleman and a scholar!
This works perfectly.
I would buy you a pint, if I was in Blackpool.