Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

AddTexture(name: string, value: Texture): void;
void AddTexture(string name, Texture value);
def AddTexture(name as string, value as Texture) as void
AddTexture(nameID: int, value: Texture): void;
void AddTexture(int nameID, Texture value);
def AddTexture(nameID as int, value as Texture) as void

Description

Add a texture material property.

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