public static void EnforceDefaultTexture(MaterialProperty texProp, string autoTextureName) { if (texProp.textureValue == null) { Texture2D def = MicroSplatUtilities.GetAutoTexture(autoTextureName); if (def != null) { texProp.textureValue = def; } } }