Skip to main content

UI Canvas

UI Canvas allows rendering UI elements into UI Canvas component.

Methods

render(view: UIView): void

Render view into UI Canvas.

local ui = game:get('UI')

entity.uiCanvas:render(ui.view{
children={ui.text{content="Hello world"}}
})

Properties:

  • view: UIView element that can be created in the UI service.