Version: 2022.2
public Rendering.BatchMeshID RegisterMesh (Mesh mesh);

参数

mesh Unity mesh.

返回

BatchMeshID BatchRendererGroup mesh ID.

描述

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