This example introduces the fundamental concept of UIFullscreenLayer - the base container for all UI elements in Laymur. A single image is displayed without any constraints, showing the basic setup for rendering UI elements in a Three.js scene.
// Create the UI layer
const layer = new UIFullscreenLayer(
1920, // Fixed width
1920 // Fixed height
);
// Add an image to the layer
new UIImage(
layer,
baseScene.loadedTextures["T_Download"]
);
// Render the layer
layer.render(baseScene.renderer, deltaTime);