Struct ambient_animation::AnimationController
source · pub struct AnimationController {
pub actions: Vec<AnimationAction>,
pub apply_base_pose: bool,
}
Fields§
§actions: Vec<AnimationAction>
§apply_base_pose: bool
Apply the base pose of the first animation action
Implementations§
source§impl AnimationController
impl AnimationController
pub fn looping(clip: impl Into<TypedAssetUrl<AnimationAssetType>>) -> Self
pub fn looping_with_speed( clip: impl Into<TypedAssetUrl<AnimationAssetType>>, speed: f32 ) -> Self
Trait Implementations§
source§impl Clone for AnimationController
impl Clone for AnimationController
source§fn clone(&self) -> AnimationController
fn clone(&self) -> AnimationController
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnimationController
impl Debug for AnimationController
source§impl Default for AnimationController
impl Default for AnimationController
source§fn default() -> AnimationController
fn default() -> AnimationController
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AnimationController
impl<'de> Deserialize<'de> for AnimationController
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for AnimationController
impl Display for AnimationController
source§impl PartialEq<AnimationController> for AnimationController
impl PartialEq<AnimationController> for AnimationController
source§fn eq(&self, other: &AnimationController) -> bool
fn eq(&self, other: &AnimationController) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AnimationController
impl Serialize for AnimationController
impl StructuralPartialEq for AnimationController
Auto Trait Implementations§
impl RefUnwindSafe for AnimationController
impl Send for AnimationController
impl Sync for AnimationController
impl Unpin for AnimationController
impl UnwindSafe for AnimationController
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> ComponentValueBase for Twhere
T: Send + Sync + 'static,
impl<T> ComponentValueBase for Twhere T: Send + Sync + 'static,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.