This example demonstrates the basics: a layer with an image displayed on it. This is the fundamental setup for working with UI elements in Laymur.
// Create the layer
const layer = new UIFullscreenLayer({
resizePolicy: new UIResizePolicyFixedHeight(1920, 1920)
});
// Add an image to the layer
new UIImage(layer, downloadButtonTexture, {
x: 50,
y: 50,
});
// Render the layer
layer.render(baseScene.renderer, deltaTime);