C# Класс Spine.Animation

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
BinarySearch ( float values, float target ) : int
BinarySearch ( float values, float target, int step ) : int
LinearSearch ( float values, float target, int step ) : int

Описание методов

Animation() публичный Метод

public Animation ( String name, ExposedList timelines, float duration ) : System
name String
timelines ExposedList
duration float
Результат System

Apply() публичный Метод

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.
Результат void