Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

Renderer.SetPropertyBlock

public void SetPropertyBlock(MaterialPropertyBlock properties);

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.

Did you find this page useful? Please give it a rating: