Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

VideoPlayer.targetMaterialProperty

public string targetMaterialProperty;

Description

Material texture property which is targeted when VideoPlayer.renderMode is set to Video.VideoTarget.MaterialOverride.

The video is sent to every Material in the Renderer that has the targeted texture property.