Animation ParentConstraint Freeze settings at runtime


Is there a way to change the Animation.ParentConstraint component’s “Freeze Rotation Axes” at run-time? The properties don’t seem to be available.

Thank you.

Ok you have to set the ParentConstraint.rotationAxes property with the Axes enum and that sets the Freeze axes.

Thank you.

An example here

ParentConstraint.rotationAxis = Axis.None;
It is working.