Hello everyone, I’m doing something like pipboy from fallout, I found a way to render a Widget to a texture but didn’t find a way to make the widget update without adding it to the viewport, right now it’s just a static image without interactivity
You can use a widget as an actor component, and update it same as you update a regular widget, instead of rendering it as a texture.
I’m not sure you can create this warp/distortion effect in the widget itself, but you can always put some refracting glass on top of it =)
This was the previous version I used the Widget Component, and also found a way to render it to a texture and assign this texture to the screen material, but I would like to try to make a cleaner version without any additional intermediary objects.
I haven’t tried this myself, but could you use UWidgetComponent::RequestRenderUpdate() ?
I believe this takes a frame to actually redraw the widget, so you may have to wait a frame to grab the texture after that call.
To refresh a widget, simply press the Refresh Data button, in the upper-right corner of the widget . The widget will then refresh itself with new and up-to-date data.
Yes, good point, I’ll look at this, maybe it’ll help me, thank you!