Struct rg3d::scene::base::BaseBuilder[][src]

pub struct BaseBuilder { /* fields omitted */ }

Base node builder allows you to create nodes in declarative manner.

Implementations

impl BaseBuilder[src]

pub fn new() -> Self[src]

Creates new builder instance.

pub fn with_mobility(self, mobility: Mobility) -> Self[src]

Sets desired mobility.

pub fn with_name<P: AsRef<str>>(self, name: P) -> Self[src]

Sets desired name.

pub fn with_visibility(self, visibility: bool) -> Self[src]

Sets desired visibility.

pub fn with_local_transform(self, transform: Transform) -> Self[src]

Sets desired local transform.

pub fn with_inv_bind_pose_transform(self, inv_bind_pose: Matrix4<f32>) -> Self[src]

Sets desired inverse bind pose transform.

pub fn with_children<'a, I: IntoIterator<Item = &'a Handle<Node>>>(
    self,
    children: I
) -> Self
[src]

Sets desired list of children nodes.

pub fn with_lifetime(self, time_seconds: f32) -> Self[src]

Sets desired lifetime.

pub fn with_depth_offset(self, offset: f32) -> Self[src]

Sets desired depth offset.

pub fn with_lod_group(self, lod_group: LodGroup) -> Self[src]

Sets desired lod group.

pub fn with_tag(self, tag: String) -> Self[src]

Sets desired tag.

pub fn build_node(self) -> Node[src]

Creates new instance of base node.

pub fn build(self, graph: &mut Graph) -> Handle<Node>[src]

Creates new instance of base node and adds it to the graph.

Trait Implementations

impl Default for BaseBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,