Version: 2022.1

VideoPlayer.targetMaterialProperty

切换到手册
public string targetMaterialProperty ;

描述

VideoPlayer.renderMode 设置为 Video.VideoTarget.MaterialOverride 时被设为目标的 Material 纹理属性。

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.