Api Sandbox MovieMaker MoviePlayer
class

MoviePlayer

public sealed class MoviePlayer : Component

Plays a IMovieClip in a Scene to animate properties over time.

Constructors

MoviePlayer()

Properties

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

Methods

Void Play()

Play the current movie from the start.

Void Play(MovieResource movie)

Play the specified movie from the start.

movie — Movie resource to play.
Void Play(IMovieClip clip)

Play the specified clip from the start.

clip — Movie clip to play.
Void UpdateTargets()

Forces the creation of any missing GameObjects or Components for the current Clip to target.

Assembly: Sandbox.Engine Namespace: Sandbox.MovieMaker Full Name: Sandbox.MovieMaker.MoviePlayer