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
Components
MoviePlayer
chevron_left Components
class
MoviePlayer

Constructors

functionsMoviePlayer

Properties

data_objectBinderdata_objectClipdata_objectCreateTargetsdata_objectIsLoopingdata_objectIsPlayingdata_objectPositiondata_objectPositionSecondsdata_objectResourcedata_objectTimeScale

Methods

functionsPlayfunctionsUpdateTargets

Static Methods

functionsBeginApplyFrame
MoviePlayer
Plays a Sandbox.MovieMaker.IMovieClip in a Sandbox.Scene to animate properties over time.
class Sandbox.MovieMaker .account_tree extends Component
sealedSandbox.Engine

build Constructors 1

MoviePlayer ()

data_object Properties 9

Binder
TrackBinder
Maps Sandbox.MovieMaker.ITracks to game objects, components, and property Sandbox.MovieMaker.ITrackTargets in the scene.
Clip
IMovieClip
CreateTargets
bool
If true, creates any missing Sandbox.GameObjects and Sandbox.Components for the current movie to target.
IsLooping
bool
IsPlaying
bool
Position
MovieTime
PositionSeconds
float
Resource
IMovieResource
Contains a Sandbox.MovieMaker.IMovieClip to play. Can be a Sandbox.MovieMaker.MovieResource or Sandbox.MovieMaker.EmbeddedMovieResource.
TimeScale
float

functions Methods 2

Play ()
Play the current movie from the start.
UpdateTargets ()
Forces the creation of any missing Sandbox.GameObjects or Sandbox.Components for the current Sandbox.MovieMaker.MoviePlayer.Clip to target.

functions Static Methods 1

BeginApplyFrame (player)
IDisposable
Creates a scope for applying a frame in a Sandbox.MovieMaker.MoviePlayer. Dispose after modifying any properties controlled by the movie.

Inheritance

Component
MoviePlayer
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