Need help understanding why my console when i play my game keeps saying this

Please take a look at my screen shot. My console keeps saying this. And to my knowledge there is absolutely mesh and verts for the materials to be on. Im not sure whats happening. If also cleaned all of the diffrent typs of unused data blocks and it dosnt help this issue. Any advice would be appreciated. Thank you all.

Ps Pay no attention to the crappy misspelled name. It was a qick test Ididnt care about spelling.

It seems there are materials in your object that are not assigned to any part, in other words, you need to remove the materials your model are not using.

Hmm, okay I appreciate your quick response and help. So say I have a large scene how would I purge all materials not being used? It would be incredibly difficult to delete all the non used materials, as I was dumb and lazy and did not name all of them to specifically if at all. I figured the orphan data block clean would do so, but sadly this is not the case. Any ideas? If not then I’ll just bite the bullet and manually go threw everything :slight_smile: but any thoughts of a more streamline method of clearing them would be great.

Update: you simply go to the materials list where you assign them all and click the dropdown below the up and down arrow on the right of materials list on object. Then click remove unused slots.

Or you can try this code to remove unused slots for all objects.
Run directly in the editor.

import bpy

context = bpy.context

for ob in context.scene.objects:
    if not ob.material_slots:
        continue
    bpy.ops.object.material_slot_remove_unused(
            {"object" : ob}
            )
1 Like

Thank you very much! I will give it a go.