bevy_feathers 0.19.0

A collection of UI widgets for building editors and utilities in Bevy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! BSN Scene for loading images and displaying them as [`ImageNode`]s.
use bevy_scene::{bsn, Scene};
use bevy_ui::{px, widget::ImageNode, Node};

/// Template which displays an icon.
pub fn icon(image: &'static str) -> impl Scene {
    bsn! {
        Node {
            height: px(14),
        }
        ImageNode {
            image: image
        }
    }
}