Sets the region affected by this animation. This is similar to calling Animation:GetParent():SetParent()
, however the assignment is persistent across the script handler chain of any playback starting before another call to Animation:SetTarget()
is made. In other words, a call to :GetParent():GetParent()
within the animation's 'OnFinished' script will return the targeted region even when its real-time execution has happened after other :SetTarget()
statements.
Signature:
Animation:SetTarget(region)
Arguments:
region
- valid UIObject on which the animation will act (table
)