VideoComponent

constructor(meshResource: MeshResource, videoMaterial: VideoMaterial)

Creates a VideoComponent instance with the given MeshResource and VideoMaterial.

You can render video on a model entity’s surface using either a code-generated mesh or an existing model mesh.

Parameters

meshResource

The MeshResource used to render the video.

videoMaterial

The VideoMaterial used to render the video.