+1 vote

Hello everyone!

Sorry if I'm asking basic stuff, but searching web yielded either no results or results that doesn't work.

I have a mesh nodes in scene tree, and I would like to change albedo texture via code. I somehow fail to reference material: if mesh_instance_node.material_override will always return false.

I tried to create spatial material in Material section of mesh inspector and I tried to create that same material in Surface 1 section - both cases returned false.

So, to sum up - there is mesh node with existing material. I can't change albedo texture via GScript.

Any help is much appreciated.

in Engine by (31 points)

Please log in or register to answer this question.

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.