In Unity, when I try to add two materials to an object, I receive this warning. However, during runtime in the Editor, both material effects can still be displayed simultaneously. But when I run the application on my Apple Vision Pro (whether by exporting the app or using “Play to Device”), only the effect of the first material is displayed, and both effects cannot be shown simultaneously. Is there a way to make all the material effects display simultaneously on Apple Vision Pro, just like on the PC? Thank you!
Like the warning says, this is slower. But also multiple materials per submesh may not be supported on all platforms (hence why it works in the Editor since PCs can do just about anything).
Ideally you want to split the mesh into two submeshes so that one uses a material each. Otherwise do as suggested and create a custom shader ie with Shader Graph.