Version: 2022.3
언어: 한국어

Mesh.MeshData.GetVertexAttributeDimension

매뉴얼로 전환
public int GetVertexAttributeDimension (Rendering.VertexAttribute attr);

파라미터

attr The vertex attribute to get the dimension of.

반환

int Returns the dimension of the vertex attribute. Returns 0 if the vertex attribute is not present.

설명

Gets the dimension of a given vertex attribute in the MeshData.

Most vertex attributes have a standard data layout. For example, a normal is a 3-component vector. Some vertex attributes (usually texture coordinates) have more than one possible data layout. For example, SetUVs accepts either 2 dimensional, 3 dimensional or 4 dimensional texture coordinates. You can use this function to query the layout of a given vertex attribute. See Also: HasVertexAttribute, GetVertexAttributeFormat.

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