Video
From a script
ts
import { VideoComponent } from "mmpx";
const video = this.entity.TryGetComponent(VideoComponent);Full API: VideoComponent.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
ClipassetId | video asset | — | |
Colortint | colour | #FFFFFF | |
Size ModesizeMode | "raw" | "custom" | "raw" | |
Materialmaterial | material asset | — | A sprite-domain material — a shader drawing this component |
Playback
| Field | Type | Default | Description |
|---|---|---|---|
Play On AwakeplayOnAwake | boolean | false | |
Looploop | boolean | false | |
Mutedmuted | boolean | true | |
Volumevolume | number (0 … 1) | 1 |