Legacy Documentation: Version 5.1
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 function AddTexture(name: string, value: Texture): void;
public function AddTexture(nameID: int, value: Texture): void;

Parameters

Description

Add a texture material property.

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