Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

MaterialPropertyBlock.AddTexture

public function AddTexture(name: string, value: Texture): void;
public function AddTexture(nameID: int, value: Texture): void;

Description

Add a texture material property.

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