Check for existence of UV channels
Use this feature to check if a 3D asset has UV coordinates, which are essential for texture mapping and rendering.
阅读时间1 分钟最后更新于 1 天前
API function: polygonal.hasUVs(mesh, channel) -> bool Returns true if the required UV channel is defined in the mesh, false otherwise.
Parameters
- mesh: the mesh for which UV channel existence must be checked.
- uvChannel (default -1): the UV channel to verify. If -1 is provided, the function returns true if any UV channel is defined in the mesh.