Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

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

Renderer.SetPropertyBlock

Switch to Manual
public function SetPropertyBlock(properties: MaterialPropertyBlock): 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.