C# Class Spine.Animation

Afficher le fichier Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Méthodes publiques

Méthode Description
Animation ( String name, ExposedList timelines, float duration ) : System
Apply ( Skeleton skeleton, float lastTime, float time, bool loop, ExposedList events, float alpha, bool setupPose, bool mixingOut ) : void

Applies all the animation's timelines to the specified skeleton.

Private Methods

Méthode Description
BinarySearch ( float values, float target ) : int
BinarySearch ( float values, float target, int step ) : int
LinearSearch ( float values, float target, int step ) : int

Method Details

Animation() public méthode

public Animation ( String name, ExposedList timelines, float duration ) : System
name String
timelines ExposedList
duration float
Résultat System

Apply() public méthode

Applies all the animation's timelines to the specified skeleton.
public Apply ( Skeleton skeleton, float lastTime, float time, bool loop, ExposedList events, float alpha, bool setupPose, bool mixingOut ) : void
skeleton Skeleton The skeleton to be posed.
lastTime float The last time the animation was applied.
time float The point in time in the animation to apply to the skeleton.
loop bool If true, time wraps within the animation duration.
events ExposedList Any triggered events are added. May be null.
alpha float The percentage between this animation's pose and the current pose.
setupPose bool If true, the animation is mixed with the setup pose, else it is mixed with the current pose. Passing true when alpha is 1 is slightly more efficient.
mixingOut bool True when mixing over time toward the setup or current pose, false when mixing toward the keyed pose. Irrelevant when alpha is 1.
Résultat void