s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
Animation
chevron_left Classes
class
Animation

Constructors

functionsAnimation

Properties

data_objectEffectiveLoopEnddata_objectEffectiveLoopStartdata_objectFrameRatedata_objectFramesdata_objectIsAnimateddata_objectLoopEnddata_objectLoopModedata_objectLoopStartdata_objectNamedata_objectOrigin
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter