Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

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;

Parameters

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.