Sub topic 6
Working in the UV Editor
This chapter assumes you can switch between Object Mode and Edit Mode, select vertices, edges and faces, and that you know a UV map links each mesh corner to a 2D position. You have already marked seams and run Unwrap. Now you will inspect and edit the result in the UV Editor.
What the UV Editor shows
The UV Editor is a 2D view of UV space, the square from 0 to 1 on both axes. It shows the UV coordinates of the faces you have in Edit Mode. The 3D Viewport shows positions in 3D. The UV Editor shows where those same faces land on the image.
The easiest way to open it is the UV Editing workspace tab at the top of the window. It places the UV Editor on the left and the 3D Viewport on the right. You can also change any area to the UV Editor from its editor type menu.
Three things in the editor are worth knowing:
- The dark square marks the 0 to 1 region. Texture images are mapped onto this square.
- Each connected group of faces is a UV island. Islands are separated wherever you marked seams.
- The header holds the mode buttons, the selection sync toggle, snapping, and the overlay and image menus.
Only selected faces appear
By default the UV Editor shows only faces that are selected in the 3D Viewport. If the editor looks empty, the likely cause is that nothing is selected in Edit Mode. Press A in the 3D Viewport to select everything and the islands appear.
This default is useful on complex meshes. Select one body part in the 3D Viewport and you see only that part's islands, without the rest of the mesh in the way.
Selection sync
The sync toggle is the small double-arrow button at the left of the UV Editor header. It controls how selection in the two editors relates.
| Setting | What the UV Editor shows | How selection works |
|---|---|---|
| Sync off (default) | Only faces selected in the 3D Viewport | UV selection is separate from mesh selection |
| Sync on | All faces of the mesh | UV selection and mesh selection are the same |
With sync off, you can select UVs in the editor without changing what is selected on the mesh. This is safer for moving islands, because you cannot accidentally change the mesh selection that decides which faces are visible.
With sync on, you can select a UV island and see the matching faces highlighted on the model. You can also select faces on the model and see where they sit in UV space. This helps when you need to find which part of the model an island belongs to. Sync on also lets you work with hidden or unselected parts of the mesh without leaving the editor.
Note that with sync on, the UV selection modes follow the mesh selection mode (vertex, edge, face). With sync off, the UV Editor has its own modes: vertex, edge, face, and island.
Selecting and transforming islands
With sync off, switch to Island selection mode, or hover over an island and press L to select the connected UVs under the cursor. Press A to select all, Alt+A to deselect, and use box select by dragging.
The basic transform keys match the 3D Viewport:
Gmoves the selection.Rrotates it.Sscales it.XorYafter a key limits the transform to that axis.
Scaling an island changes how many texture pixels it receives. A larger island gets more detail. You will use this later to control texel density, so for now just notice the effect: scale changes resolution, not shape.
Moving an island does not change distortion. Moving, rotating and uniform scaling keep the island's shape. Non-uniform scaling does change it, and it is a common source of stretched textures.
Pivot and snapping
Transforms happen around a pivot point. The pivot menu in the UV Editor header offers Bounding Box Center, 2D Cursor, Median Point and Individual Origins. Individual Origins is useful when several islands are selected and you want each to rotate or scale around its own center instead of the group's.
Snapping helps align islands to the grid or to other vertices. Enable it with the magnet icon in the header. Snapping to pixels is useful when a texture has sharp pixel-aligned details.
Viewing UVs on the model
The UV Editor can display an image behind the islands. Open an image using the Image menu, or use the New button to create one. Islands are drawn over the image, so you can line them up with details such as a label or a painted area.
For unwrapping work, a generated test grid is the most useful image. The next chapter covers how to use one to detect stretching, so here you only need to know how to load it. In the Image menu choose New, set the Generated Type to UV Grid or Color Grid, and confirm. This image exists only inside your Blender file until you save it.
Overlays
The Overlays popover in the UV Editor header controls what is drawn on top of the UVs. These options matter most for unwrapping:
- Stretch shows distortion as color. Blue means little stretch, red means a lot.
- Modified Edges and Display Stretch options choose how the information is drawn.
- Display Stretch has two types: Angle and Area. Angle shows how much angles are changed. Area shows how much surface area is scaled.
You do not need to read these colors yet. They are covered in the next chapter on spotting distortion. Know where they are, because you will turn them on often.
A UV Editor workflow for a complex mesh
The following sequence works for most models with many parts:
- Select one part in the 3D Viewport so only its islands show in the UV Editor.
- Check that the islands are present and have reasonable shapes.
- Load a test grid image and look for stretching.
- Move, rotate and scale islands to place them clearly in UV space.
- Repeat with the next part.
Working part by part keeps the editor readable. Packing all islands together comes later and should happen once the shapes are good.
Common problems
- The UV Editor is empty. Nothing is selected in Edit Mode, or you are in Object Mode. Enter Edit Mode and select faces.
- The islands are tiny or huge. Unwrap sizes islands by the area of the original faces without regard to the 0 to 1 square. You can scale the whole selection to fit.
- Selecting in the UV Editor selects things in the viewport. Sync is on. Turn it off if you want separate selections.
- UVs jump when you move a vertex. Check for several vertices at the same position. With sync off, each mesh corner has its own UV, so selecting one UV may not select the others on the same vertex. Use Select Linked or sticky selection to include them.
Reading UV data with a script
You can read the same data the editor shows. This script prints the UV bounds of the active mesh in Edit Mode, which tells you whether islands fall outside the 0 to 1 square.
import bpy
import bmesh
obj = bpy.context.edit_object
bm = bmesh.from_edit_mesh(obj.data)
uv_layer = bm.loops.layers.uv.active
if uv_layer is None:
print("No UV map on this mesh")
else:
us = []
vs = []
for face in bm.faces:
for loop in face.loops:
uv = loop[uv_layer].uv
us.append(uv.x)
vs.append(uv.y)
print("U range:", min(us), max(us))
print("V range:", min(vs), max(vs))Run it from the Text Editor while the mesh is in Edit Mode. If a range goes below 0 or above 1, some UVs lie outside the main square.
Exercise
You select an island in the UV Editor and press G to move it. Another part of the model unexpectedly becomes selected in the 3D Viewport. What is the likely cause, and what do you change?
Show answer
UV sync selection is on, so UV and mesh selection are shared. Turn the sync toggle off in the UV Editor header so UV selection stays separate from the mesh selection.
Exercise
You open the UV Editor and see no islands, although the mesh has a UV map. Give two things to check.
Show answer
Check that the object is in Edit Mode, and that faces are selected in the 3D Viewport (or turn sync on to show all faces).