Class
KeyframeMarker
An instance meant to represent an event that will eventually be fired when a
Keyframe is hit.
A KeyframeMarker is an instance meant to represent an event that will
eventually be fired when a Keyframe is hit.
Using a KeyframeMarker#
KeyframeMarkers should always be parented to a Keyframe via setting the parent
directly or using the Keyframe:AddMarker() function of Keyframe.
KeyframeMarkers can also be removed directly or using the
Keyframe:RemoveMarker() function, and polled to check which markers
are attached to a specific Keyframe using Keyframe:GetMarkers().
Whenever a Keyframe is detected as an animation is running, there will be an
event fired for each KeyframeMarker that is parented to the Keyframe. These
events are identifiable by the name of the KeyframeMarker. You can retrieve
and listen to these events using the
AnimationTrack.GetKeyframeMarkerReached function. Optionally, you may
set the KeyframeMarker.Value property of the KeyframeMarker in order
to pass along a value with the event being fired.
It inherits the Keyframe.Name property from
Instance and behaves identically. Names are used for identification
and do not need to be unique. When multiple KeyframeMarker instances with
the same name are attached to a Keyframe, events such as the one
returned by AnimationTrack:GetMarkerReachedSignal() will fire for
every marker.
See also:
Keyframe, holds thePosesapplied to joints in aModelat a given point of time in an animationAnimationTrack, controls the playback of an animation on aHumanoidorAnimationControllerAnimation, holds a reference to animation data required to play custom animations on characters or other models using the Roblox animation system
Properties 1#
Valuestring | A value that is specified for a KeyframeMarker.ReadSafe |
Value: string#
ReadSafe
A value that is specified for a KeyframeMarker. Whenever the
signal created from AnimationTrack:GetMarkerReachedSignal() gets
fired, this value will be passed into the connected function.
See also:
Keyframe, holds thePosesapplied to joints in aModelat a given point of time in an animationAnimationTrack, controls the playback of an animation on aHumanoidorAnimationController
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild