Widget Component Not Rendering properly

Hi,

I’ve looked up for my problem on the forum already and none of the previous answers worked for me. Sorry for creating a new post though :pray:

My blueprints

BP_Items (class actor): i've added a widget component to my items.

→ Widget component : Materials and User Interface Widget class set to W_Display_Message

→ Widget component : Rendering

→ Widget component : visible in viewport

Widget visible in the viewport

W_Display_Message (User Interface) : It's very simple, juste a canvas, a border and a text

My Problem : the widget is displaying in the viewport but not in runtime.

 -> The widget show in the game only if i put the blend mode of my widget component to "Opaque'. 
 -> i've checked the two sided box the test but that's what shows in runtime => problem persists
 -> i've already deleted and added a new widget component => problem persists
 -> i've deleted everything from my W_display_Message and remade it => problem persists

Widget in the game

It’s a scaling problem.
Your setup is ok.
The problem is the anchors in your widget.

with changes in the resolution if anchors are set to the top left corner you will get widget scaling out of the range of the set boundaries of the 3d widget

Select the border => Anchors => choose full box on the lower right
alignment 0.5 , 0.5
all offsets = 0

Common text =>Horizontal and vertical alignment => both set to center

Same problem the widget is visible in the viewport but not during runtime
image

Common_Text is aligned on center

And border’s anchor is set to the bottom right one

And here are the settings of my widget

image

Are you modifying the text at some point in runtime? If the border is showing but the text is not, could be that the text might be empty at runtime?

Also you don’t really need a canvas panel here

No i will eventually change the text later but right now i’m not changing the text on the UI widget.
I changed the canvas to an overlay and nothing changed…

i tried like this and nothing too… still not working. I also changed my map (never know if something weird was messing up with the render) and nothing either

Use a canvas panel as the root.

Canvas Panel
|
→ Border
|
→ Text

The problem came from the visibility of the UI widget W_Display_Message. i checked for the visibility of all the elements already before asking here.

Canvas => Visible
Border => Visible
Text => Visible

Never thought of checking the visibility or the options of the root
[M_Display_Message] => HIDDEN !!

I changed it to visible and it seems to work now :slight_smile:

Thanks a lot

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.