UI is behaving strangely since 41.00 , creating solid canvas, before the acutal graphic

Summary

Since update 41.00 the ui process strangely,especialy of first encounter with the specific UI, creating white solid square before inserting the correct images of the UI. Subsequent encounter sometime load fine, code is from sample UI material block example

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

UI/Tools

Steps to Reproduce

Run the sample UI code from sample pack, example on material block. first run white square then correct graphic

Expected Result

No white square when canvas is created, should show the graphic texture

Observed Result

white square then graphic

Platform(s)

PC UEFN

Upload an image

I’m having this issue as well, with a large set of materials made for UI.

- The materials are assigned through @editable ?material fields and shown with material_block (DefaultImage). The project has too many UI materials to reference each one directly in code.

- It also happens in a private published version, not only in edit sessions.

- Which materials break seems random, with no pattern. But it is always the same ones: they stay white across every session and in the private published version. I don’t know if they would break after a full release or not.

- Restarting the session, re-saving the materials (Apply + Save) and resetting texture settings did not help. Platform: PC, UEFN.

Workaround that fixed it for me (all UI materials, 50+ of them): The white material_block issue started for me after a UEFN update. Materials that worked before turned white in game, seemingly at random, but it was always the same materials. What I tested: - Reimporting the texture: no fix - Duplicating the material: still white, the copy keeps the broken data - Identical settings and nodes in a NEW material: works So the corruption is inside the old material asset files, not in the nodes or textures. The fix is to build brand-new material assets. This Python script (paste in the Python box at the bottom of UEFN) creates a new “_New” material for every material in a folder, copying the nodes and textures from the old one. Change F to your folder. Then Save All, point your Verse @editable fields to the _New materials, and test. Don’t delete the old materials, it breaks the Verse references. Ask Ai about help if this is hard to understand. Python:

exec(‘import unreal\nM=unreal.MaterialEditingLibrary\nP=unreal.MaterialProperty\nE=unreal.EditorAssetLibrary\nF=“/YourProject/YourFolder/”\nqs=[P.MP_EMISSIVE_COLOR,P.MP_OPACITY,P.MP_OPACITY_MASK,P.MP_BASE_COLOR]\ndef rebuild(s):\n name=s+“_New”\n if E.does_asset_exist(F+name):\n print(“EXISTS”,name); return\n src=unreal.load_asset(F+s)\n new=unreal.AssetToolsHelpers.get_asset_tools().create_asset(name,F[:-1],unreal.Material,unreal.MaterialFactoryNew())\n for p in [“material_domain”,“blend_mode”]:\n new.set_editor_property(p,src.get_editor_property(p))\n st=[M.get_material_property_input_node(src,q) for q in qs]\n nodes=[]\n while st:\n n=st.pop()\n if n is None or n in nodes: continue\n nodes.append(n)\n st+=list(M.get_inputs_for_material_expression(src,n))\n dup=[M.duplicate_material_expression(new,None,n) for n in nodes]\n for i,n in enumerate(nodes):\n ins=list(M.get_inputs_for_material_expression(src,n))\n names=list(M.get_material_expression_input_names(n))\n for j,x in enumerate(ins):\n if x is None: continue\n M.connect_material_expressions(dup[nodes.index(x)],M.get_input_node_output_name_for_material_expression(n,x),dup[i],str(names[j]) if j<len(names) else “”)\n for q in qs:\n n=M.get_material_property_input_node(src,q)\n if n is None: continue\n M.connect_material_property(dup[nodes.index(n)],M.get_material_property_input_node_output_name(src,q),q)\n M.layout_material_expressions(new)\n M.recompile_material(new)\n print(“BUILT”,name)\nfor a in E.list_assets(F[:-1],recursive=False):\n s=a.split(“.”)[-1]\n if s.endswith(“_New”): continue\n if isinstance(unreal.load_asset(a),unreal.Material): rebuild(s)’)

Epic, please look at why materials saved before the update break. Rebuilding every UI material by hand is not a reasonable workaround. The break in the ui materials seems to be somewhere we as users can’t see where the file breaks.