- Edited
I'm having some trouble understanding how to apply or change a texture of a 3D model. I have of course Google'd to no avail, and searched the forum here, but I can't find a clear-cut example or explanation that works.
I'm basically trying to:
var image = Image.new()
var texture = ImageTexture.new()
image.load("res://Textures/tex.png")
texture.create_from_image(image)
model_instance = model.instance()
model_instance.get_node("MeshInstance").set_texture(texture)