Godot Version
4.1.3 →
Question
For whatever reason the get_active_material() isn’t available for the Multimesh node.
Trying to adjust my shader via gdscript but not sure how to go about this…
Is there a workaround?
4.1.3 →
For whatever reason the get_active_material() isn’t available for the Multimesh node.
Trying to adjust my shader via gdscript but not sure how to go about this…
Is there a workaround?
I think you should access first the mesh itself and then the material
Mesh — Godot Engine (3.1) documentation in English
Oh ty, I think I was able to get it working by doing this:
$path.get_multimesh().get_mesh().surface_get_material(0)
Not getting any errors, but for some reason, it’s still not behaving the way intended. I’ll let you know if I get it working.