UIViewport¶
Class ยท server and client scripts
UIViewport draws the world as a camera sees it inside a UI element's box. Spawn an entity with Box and UIViewport components to render a camera view inside UI.
Example
CurrentCamera¶
CurrentCamera is the camera whose image fills the element. The camera's CameraTarget sets the image size, 512 by 512 without one, and whether the sky or a transparent background is behind the world. nil draws nothing.
Default nil
ViewportColor¶
ViewportColor multiplies the view's RGB channels; white keeps its colors unchanged.
Default Color.new(1, 1, 1, 1)
ViewportAlpha¶
ViewportAlpha multiplies the view's opacity from 0 to 1.
Default 1