I'm trying to copy material from one MeshInstance to another. MeshInstance has materials inside of a .mesh and inside itself in Materials tab. I need to copy materials from Materials tab.
All these methods return SURFACE material that is inside of a mesh. How do I get Material inside of a MeshInstance??