Easy way to replace all references of a material?

So, since 4.11 i can no longer run my project in debugGame through visual studio because “WorldGridMaterial contains editor only data”, the problem there is, over 300 assets reference that material apparently including default content from the engine.

Is there an easy fix to this?

Delete the Material, you should be asked if you want to replace references, just point to your new material.

Obviously backup your projects beforehand

Might not be exactly what you’re looking for, but if you just want to change materials on a bunch of brushes at the same time:

SHIFT + S to select all surfaces (or Right Click > Select > Select all Surfaces), and then apply the material you want.

You could also select the brushes you want, then press SHIFT + B to select all surfaces on those brushes, and then apply the material.

The problem for me is that when I try to replace the materials and I write the name of the material I want to replace, the filter doesn’t find it, It happens randomly with many materials. but they are all in the same folder, so it doesn’t make any sense


If you haven’t already had your question answered, make sure that you create a material instance for the material you want to replace with.

I was having the same problem and this worked it out for me.

1 Like