Version: 2021.1
언어: 한국어

Mesh.MeshData.HasVertexAttribute

매뉴얼로 전환
public bool HasVertexAttribute (Rendering.VertexAttribute attr);

파라미터

attr The vertex attribute to check for.

반환

bool Returns true if the data attribute is present in the Mesh. Returns false if it is not.

설명

Checks if a given vertex attribute exists in the MeshData.

Most Mesh vertex attributes are optional. For example, a Mesh might contain only vertex positions, normals, and one UV coordinate. Use this method to check whether a given vertex attribute is present in a Mesh. See Also: Mesh.HasVertexAttribute, GetVertexAttributeDimension, GetVertexAttributeFormat, Mesh.AcquireReadOnlyMeshData.

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