Instance mesh material

Hello, is there a way to set material for an instanced mesh, because there is no setter for the material in an instanced mesh

This is expected as instances CANNOT have different materials. You can use clones if you want this behavior

I am making it as an instance from the creation of the model to make it lighter on the loading time and space and i have to change the material of it onpress(action manager) so there are only a getter function to the instance i am just asking if there are a way to override or add a function to set material for instancedmesh

No, instance meshes can’t have a different material than their master mesh (this is one reason they are handled faster than regular or cloned meshes). If that is a requirement for you, you will have to use clones instead.

okay thank you