Sets the parent for the animation. If the animation was not already a child of the parent, the parent will insert the animation into the proper order amongst its children.

Signature:

Animation:SetParent(animGroup) or Animation:SetParent("animGroupName")

Arguments:

  • animGroup - The animation group to set as the parent of this animation (animgroup, AnimationGroup)
  • animGroupName - The name of the animation group to set as the parent of this animation (string)