public static void DrawMesh (Mesh mesh, Vector3 position= Vector3.zero, Quaternion rotation= Quaternion.identity, Vector3 scale= Vector3.one);
public static void DrawMesh (Mesh mesh, int submeshIndex, Vector3 position= Vector3.zero, Quaternion rotation= Quaternion.identity, Vector3 scale= Vector3.one);

Parameters

meshMesh to draw as a gizmo.
positionPosition (default is zero).
rotationRotation (default is no rotation).
scaleScale (default is no scale).
submeshIndexSubmesh to draw (default is -1, which draws whole mesh).

Description

Draws a mesh.

See Also: DrawWireMesh.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961