I’m trying to figure out how to use addMeshObject() to add an object to my scene with an existing mesh.
The problem is that I don’t know what to put on the materials parameter, since it requires Vector instead of the MaterialData that I have. After looking around for a while I figured out I could get a Vector using Vector.fromData(), but I don’t know how to get the _Vector.VectorData<Unknown<0>> needed for this method.
Also, since I’m unexperienced at coding, I would like to know how could I figure stuff like this by myself, since there isn’t documentation on it, the only example I could find that used addMeshObject (generate mesh) didn’t explain it and didn’t use an existing mesh so it’s different; and by looking at the code directly It seems like a botomless pit since to understand the definition I will need to figure out another function or another type…
Thanks for your patience.