pub struct AnimationLayer {
pub name: String,
pub weight: f32,
pub mask: Vec<String>,
pub additive: bool,
pub current_state: Option<String>,
pub current_time: f32,
pub transition: Option<ActiveTransition>,
}Expand description
A layer runs its own state machine and blends on top of lower layers.
Fields§
§name: String§weight: f32§mask: Vec<String>Property paths this layer affects. Empty = all properties.
additive: bool§current_state: Option<String>§current_time: f32§transition: Option<ActiveTransition>Implementations§
Trait Implementations§
Source§impl Clone for AnimationLayer
impl Clone for AnimationLayer
Source§fn clone(&self) -> AnimationLayer
fn clone(&self) -> AnimationLayer
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AnimationLayer
impl RefUnwindSafe for AnimationLayer
impl Send for AnimationLayer
impl Sync for AnimationLayer
impl Unpin for AnimationLayer
impl UnsafeUnpin for AnimationLayer
impl UnwindSafe for AnimationLayer
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