Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


targetMaterialProperty

Material texture property which is targeted when VideoPlayer.renderMode is set to MaterialOverride.
Read time 1 minuteLast updated 10 days ago

Definition

public string targetMaterialProperty { get; set; }

Remarks

The video is sent to every Material in the Renderer that has the targeted texture property. When this property is empty, the VideoPlayer uses the name of the material's first main texture. If no main texture is found, the VideoPlayer uses the name of the material's first texture property.