s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Classes
Animation
chevron_left
Classes
class
Animation
Constructors
functions
Animation
Properties
data_object
EffectiveLoopEnd
data_object
EffectiveLoopStart
data_object
FrameRate
data_object
Frames
data_object
IsAnimated
data_object
LoopEnd
data_object
LoopMode
data_object
LoopStart
data_object
Name
data_object
Origin
Animation
Contains one or multiple frames that can be played in sequence.
class
Sandbox.Sprite
.
Sandbox.Engine
build
Constructors
1
Animation
(
)
data_object
Properties
10
EffectiveLoopEnd
int
Returns the effective loop end frame index, resolving -1 to the last frame.
EffectiveLoopStart
int
Returns the effective loop start frame index, resolving -1 to 0.
FrameRate
float
The speed of the animation in frames per second.
Frames
List`1
A list of frames that make up the animation. Each frame is a texture that will be displayed in sequence.
IsAnimated
bool
True if we have more than one frame
LoopEnd
int
The frame index at which looping ends. A value of -1 means the last frame.
LoopMode
LoopMode
The loop mode of the animation. This determines what should happen when the animation reaches the final frame in playback.
LoopStart
int
The frame index at which looping starts. A value of -1 means the first frame (0).
Name
string
The name of the animation. Allows you to play specific animations by name.
Origin
Vector2
The point at which the rendered sprite is anchored from. This means scaling/rotating a sprite will do so around the origin.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.