Animation ParentConstraint Freeze settings at runtime
Hello,
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.
Answer by caesarhernandez · Aug 26, 2018 at 02:32 PM
Ok you have to set the ParentConstraint.rotationAxes property with the Axes enum and that sets the Freeze axes.
Thank you.
Answer by hgulgen · Feb 11, 2020 at 10:54 AM
An example here
ParentConstraint.rotationAxis = Axis.None; It is working.
Your answer
Follow this Question
Related Questions
Import .fbx runtime and apply animations 0 Answers
Animate a Prefab and change Clip Properties programmatically 0 Answers
Animate a Prefab and change Clip Properties programmatically 0 Answers
How can I change the design of game_object at runtime? 0 Answers
How can i get "_eulerKeyFrame" using "GetCurveBindings(...)" ? 0 Answers