Expand description
the NodeBuilder is used to help create and build nodes within a scene. instead of having tons of parameters NodeBuilder splits node properties into different methods which decreases tedious code and increases readability
§Example
use maple::components::Event;
use maple::math;
use maple::nodes::{Buildable, Builder, Container, Empty, Node};
let node = Empty::builder()
// Modify the node's initial transform
.position((10.0, 0.0, 0.0))
.scale_factor(10.0)
.build();Structs§
- Node
Prototype - a prototype node contains all the components that all nodes have but nothing else