How convert a ui to render texture, or to texture?

How convert a ui to render texture, or to texture? Ty for answer.

Example for make a Digital gauge…

Have a look at how the Retainer Box widget works:

344892-screenshot-1.png

There should be some stuff on YT covering this.