- Home /
Check if a mesh has UV map at runtime
How do you check if a mesh has a UV map (at runtime)?
Answer by syclamoth · Nov 27, 2011 at 10:43 AM
A mesh always has a UV map- but if it hasn't been set up properly before exporting it'll usually be at a default value, which depends on the modelling package it was created in. It's difficult to tell from scripting whether a UV map is valid or not- it's the kind of thing that is much easier to tell just by looking at it since humans have much better pattern recognition skills than computers.
Ah yes - it's probably because the UVs are not right... next question then is how do you fix UV maps at runtime: http://answers.unity3d.com/questions/189596/uv-mapping-a-sphere-at-runtime.html
Your answer
Follow this Question
Related Questions
How do I calculate the UV's for a procedurally generated shape? 2 Answers
Create planar UVs on procedurally generated mesh 1 Answer
Deleting one triangle out of mesh? Cut hole in mesh in runtime? 4 Answers
Applying UV to plane mesh is pixel imperfect. 0 Answers
How do I go about texturing a flat-shaded generated mesh? 1 Answer