Setting UV Mapping for facial expression of a character

Godot Version

4.3

Question

Following https://www.youtube.com/watch?v=E96m9Z4iTcc for Blender, suppose I have a texture ready for multiple facial expressions, what are the codes/functions to use in Godot when I would like to change the position of the UV to change the facial expression?

You may use a StandardMaterial3D with a scaled down UV1 for a sprite-sheet like face. Check out this other post I remember

1 Like

@gertkeno Thank you! From there, I tried this code below and it worked!

var mesh:MeshInstance3D = get_node("test_character/Armature_001/Skeleton3D/mesh1_001")
var mat:StandardMaterial3D = mesh.get_active_material(0)
mat.uv1_offset = Vector3(xxx, yyy, zzz)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.