AnimChannel:GetClosestKeyID(when)

Version added: before 9.5

Arguments:

Name Type Description Default Ver
when int32 Frame number < 9.5

Return value:

int32 the closest keyframe id
Returns the closest keyframe to the left from the given frame. If the given frame has a key, then that keyframe is returned.
<< Back to AnimChannel