版本: Unity 6 (6000.0)
语言English
  • C#

BatchRendererGroup.RegisterMaterial

建议更改

成功!

感谢您帮助我们提高 Unity 文档的质量。虽然我们无法采纳所有提交,但我们确实会阅读用户提出的每个建议更改,并在适用的情况下进行更新。

关闭

提交失败

由于某些原因,您的建议更改无法提交。请<a>稍后再试</a>。感谢您抽出时间帮助我们提高 Unity 文档的质量。

关闭

取消

声明

public Rendering.BatchMaterialID RegisterMaterial(Material material);

参数

material Unity 材质。

返回值

BatchMaterialID BatchRendererGroup 材质 ID。

描述

BatchRendererGroup 中注册材质并返回其 BatchMaterialID。每次注册特定材质都会将其所有者数量增加 1。