Struct rg3d::scene::base::BaseBuilder [−][src]
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]
self,
children: I
) -> Self
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
impl !RefUnwindSafe for BaseBuilder
impl Send for BaseBuilder
impl !Sync for BaseBuilder
impl Unpin for BaseBuilder
impl UnwindSafe for BaseBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,