Jump to content

[SOLVED] RenderToTexture in GUI


photo

Recommended Posts

Hello.

How to show in gui some runtime dynamic texture?

Im getting new texture each frame by rendering scene from different angle to a viewport.renderTexture2D(), like this https://developer.unigine.com/en/docs/2.7.3/code/usage/mirrors_viewports_materials/index

gui has WidgetSprite to show images https://developer.unigine.com/en/docs/2.12/api/library/gui/class.widgetsprite

and WidgetSprite have setTexture(path_to_texture) <- why not texture id???

and setImage(img, dynamic) <- do I have to manualy call it each render frame and convert from texture to image?

is there other ways?

thanks

Link to comment
  • silent changed the title to [SOLVED] RenderToTexture in GUI
×
×
  • Create New...