Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

MaterialPropertyBlock.AddTexture

Switch to Manual
public void AddTexture(string name, Texture value);
public void AddTexture(int nameID, Texture value);

Parameters

Description

Add a texture material property.

Note that texture properties in the MaterialPropertyBlock will not work with fixed-function shaders.