How to make child not to be affected by parent's animation ?

Hello everyone, I have an object which has an animation, when I play it, that object’s child gameObjects are animating to, so I don’t want the child to animate, is there any way to make child not to animate while the parent object animates ? Thanks :slight_smile:

while animating you can tell the child, transform.parent = null; then when the animation is over you can say transform.parent = oldParent.transform;