Version: 2018.2

Graphic.materialForRendering

Switch to Manual
public Material materialForRendering ;

Description

The material that will be sent for Rendering (Read only).

This is the material that actually gets sent to the CanvasRenderer. By default it's the same as Graphic.material. When extending Graphic you can override this to send a different material to the CanvasRenderer than the one set by Graphic.material. This is usefull if you want to modify the user set material in a non destructive manner.