Run when the animation (or animation group) finishes animating. Does not run for an animation group set to loop unless the group's :Finish() method is called.

Signature:

OnFinished(self, requested)

Arguments:

  • self - Reference to the widget for which the script was run (animation)
  • requested - True if animation finished because of a call to AnimationGroup:Finish(); false otherwise (boolean)