Apply To Mesh
Sets up the materials used by a Renderer (eg MeshRenderer) to display video from the MediaPlayer component.
Not only is the texture from the video applied, but also certain material keywords and properties are adjusted depending on the requirements to display the video texture. For example on some platforms the video texture is flipped vertically, or in a different colour space, so the shader is required to support these conversions. The AVPro Video shaders support these conversions and used be used in most cases. If you choose to 'resolve' the textures in the MediaPlayer then these adjustments are already made and so any material can be used.
|Media||The MediaPlayer component to apply to the mesh|
|Default Texture||The texture to display during times when there is no video texture to display (eg during video loading)|
|Renderer||The target Renderer (eg MeshRenderer) to apply the video texture to|
|All Materials||For renderers with multiple materials, either apply to all materials or a specific one|
|Material Index||Assign to a specific material index|
|Texture Property||The name of the Material texture to set. The default texture property depends on the render pipeline used. Standard shaders use _MainTex. URP shaders use _Basemap. HDRP shaders use _BasecolorMap.|
|Offset||The normalised X, Y offset to apply to the texture (if shader supports it)|
|Scale||The normalised X, Y scale to apply to the texture (if shader supports it)|