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 UpdateTargets() Forces the creation of any missing GameObjects or Components for the current Clip to target.