0 votes

How can I use more than one uv map in godot for a single object I made in blender?
(I am trying to change skin for character.)

image:
https://dosya.co/1e6qfqalp5cw/ssss.png.html

Godot version 3.3.2
in Engine by (60 points)

1 Answer

0 votes

Depends on a few things

  • where your material is
  • If you're using spatial material
  • if all your textures are properly uv unwrapped

Code

extends Mesh instance

func change_skin(image_path):
    var mat = get_surface_material(0)
    mat.albedo_texture = load(image_path)
    set_surface_material(0, mat)
by (4,972 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.