Download

Stamina bar question

Does anyone know how genshin impact or breath of the wild setup the stamina bar. Should I connect the widget to the character bp so that’s how it follows the character? And would the widget get affected by the world lighting, if so how to prevent that? The bar should stay consistent visually and not be affected by lighting or shadows.

Thanks for any information in advance.

The whole point of UMG is it’s not affected by lighting.

Use a WidgetComponent, and put your 2D widget in there; add this component to your character and you should be done.

The 2D widgets generally use materials that aren’t affected by lighting, although maybe it’s possible to make a material for them that does get affected? Anyway, by default, it does exactly what you want.

Awesome, thank you for the responses