setTextureSampleName

fun setTextureSampleName(textureSampleName: String)

Sets the texture sample name for the VideoPlayerComponent instance.

When set, the video component broadcasts its texture using this name according to the VideoTextureSampleMode, enabling the shader graph material to sample the texture using the same built-in video sample name.

Typically used together with setTextureSampleMode.

Note:

Parameters

textureSampleName

The texture sample name to set. Must be non-empty, contain only alphanumeric characters, and be at most 256 bytes long.