Version: 2023.2
言語: 日本語

Mesh.GetVertexAttributeFormat

マニュアルに切り替える
public Rendering.VertexAttributeFormat GetVertexAttributeFormat (Rendering.VertexAttribute attr);

パラメーター

attr Vertex data attribute to check for.

戻り値

VertexAttributeFormat Format of the data attribute.

説明

Get format of a specific vertex data attribute on this Mesh.

Meshes usually use a known format for data layout, for example, a normal is a Vector3 by default. But meshes can use different vertex data formats, for example colors32 and colors set up vertex color in different formats. You can use this function to query this format.

See Also: VertexAttribute, HasVertexAttribute, GetVertexAttributeDimension, GetVertexAttributes.

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