macro_rules! scene { ( $(attributes: $(($attr_id:literal, $attr_value:expr)),*)? $(,)? assets: $assets:expr, $(components: $(($cmp_id:literal, $cmp_value:expr)),*)? $(,)? $(children: $($child:expr),*)? ) => { ... }; }
Expand description
Provided to define a Scene
struct.
ⓘ
let aframe_scene = scene!
{
attributes: ("style", "min-height: 50px;"),
assets: assets!
{
Image::new("image-name", "/my-image.png")
}
components: ("embedded", component!(Embedded)),
children:
entity!
{
attributes: ("id", "test-entity"),
components: ("position", component!(component::Position)),
}
}