s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
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_objectFrameRatedata_objectFramesdata_objectIsAnimateddata_objectLoopModedata_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 6

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
LoopMode
LoopMode
The loop mode of the animation. This determines what should happen when the animation reaches the final frame in playback.
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