0 votes

Title says it all.
I've figured out how to Apply a SpatialMaterial to a MeshInstance, but I need it applied directly to the mesh for inclusion in a meshlibrary for use with gridmaps.

Alternatively if there's a way to edit the properties of a material on a loaded CubeMesh instead I'd love to hear it.

in Engine by (23 points)
edited by

1 Answer

0 votes
Best answer

To answer my own question albeit with great shame; Mesh.surface_set_material() is the function I was looking for, as opposed to Mesh.set_surface_ material()which is the syntax for MeshInstances.


by (23 points)
edited by
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 Frequently asked questions and 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.