Version: 2022.2
public Rendering.BatchMaterialID RegisterMaterial (Material material);

参数

material Unity Material.

返回

BatchMaterialID BatchRendererGroup Material ID.

描述

Registers a Material in BatchRendererGroup and returns its BatchMaterialID. Each registration of a specific Material increases its number of owners by 1.