Setting Animation Rigging Constraint values at edit time, lost when starting play mode

These values are set by the following script at edit time:

But as soon as I hit play, the values on the constraint are lost.

How can I retain them?

Manually marked the target constraint components as dirty after setting their data, it solved the issue.

constraint = GetComponentInParent<TwoBoneIKConstraint>();

Undo.RecordObject(constraint, "Helper - constraint"); = animator.GetBoneTransform(rootBone); = animator.GetBoneTransform(midBone); = animator.GetBoneTransform(tipBone); = targetTransforms.Get(targetTransform); = targetTransforms.Get(hintTransform);