Is it possible to change the text size in a widget?

Is it possible to change the text size in a widget?
i have a lantern with a widget that looks like this: (first image) but as you can see, the text is too big, so i went to the widget bp and set the text block to “is variable” and did this: (second image) so i can change it in the lantern bp but it doesn’t seem to be working, can someone help?

You’ve attached no screenshots but it would looks close to this:

You’d need to pipe in the data. Sadly, you can’t use Set Member in Struct here.

1 Like

oh sorry it was a mistake here are the screenshots, but can you tell me what the target textblock is connected to? thanks for the help tho :

346965-image-2021-08-22-194635.png

346966-image-2021-08-22-194645.png

but can you tell me what the target
textblock is connected to

To the widget that owns that text block. In your case it’d be the Interact-widget you’ve cast to above. But you have a nice & neat function for Setting Font Size - so I’d do it there, as in:

  • so after casting to the widget, call that function:

346970-screenshot-6.png

Alternatively, you could just set the widget size on the widget component. But that may yield unsatisfying results in certain scenarios.

Drag a wire from the Text Block > Get Font. You can also right click on struct pins and Split them to get components.

Or drag another wire and break the struct.

3 Likes

hey sorry for not responding to your message, i managed to set the text size using the makeslate font info node but as you can see, the text doesn’t work beacause i don’t know how you got this function: (second image) (and sorry for asking stupid questions i’m not very good a blueprints)

347233-image-2021-08-25-005438.png

its working! thanks for the help

thx a lot.

1 Like