Skip to content

Video ​

RenderingScripts: VideoComponent

From a script ​

ts
import { VideoComponent } from "mmpx";

const video = this.entity.TryGetComponent(VideoComponent);

Full API: VideoComponent.

Fields ​

FieldTypeDefaultDescription
Clip
assetId
video asset—
Color
tint
colour#FFFFFF
Size Mode
sizeMode
"raw" | "custom""raw"
Material
material
material asset—A sprite-domain material — a shader drawing this component

Playback ​

FieldTypeDefaultDescription
Play On Awake
playOnAwake
booleanfalse
Loop
loop
booleanfalse
Muted
muted
booleantrue
Volume
volume
number (0 … 1)1

© 2026 PlayAdGentic