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.

Renderer.SetPropertyBlock

Switch to Manual
SetPropertyBlock(properties: MaterialPropertyBlock): void;
void SetPropertyBlock(MaterialPropertyBlock properties);
def SetPropertyBlock(properties as MaterialPropertyBlock) as void

Description

Lets you add per-renderer material parameters without duplicating a material.

This is recommended when changing material properties often. With multithreaded rendering, it is more efficient than setting properties directly on the material.

See Also: MaterialPropertyBlock, GetPropertyBlock.