Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Embedding

Sometimes your UI is not the whole screen — you want to display a rendered camera feed inside a node, compose multiple UIs into one output, or run Lunex alongside other rendering systems.

This chapter covers the compositional patterns Lunex supports:

  • Camera - Render a camera’s output into a UI node. This is the bread and butter of embedding — for example a minimap, a picture-in-picture viewport or a 3D scene preview displayed inside a fixed aspect ratio panel in your UI.

  • Bevy UI - How Lunex coexists with Bevy’s own bevy_ui framework in a single app.

The core idea is always the same: Lunex UI is rendered by cameras into render targets like anything else in Bevy, and a UI node can display any image — including one that another camera renders into.

Where to go next

  • Camera - The dual-camera pipeline.
  • Bevy UI - Coexistence with Bevy’s UI framework.