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.
Read time 1 minuteLast updated 21 hours ago
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.