pub struct NlaLayer3D { /* private fields */ }Expand description
Single Non-Linear Animation (NLA) playback layer supporting override/additive blending, joint bitmasks, and smooth crossfades.
Implementations§
Source§impl NlaLayer3D
Fluent configuration and crossfade helpers for NlaLayer3D.
impl NlaLayer3D
Fluent configuration and crossfade helpers for NlaLayer3D.
Sourcepub const fn new(clip_index: usize) -> NlaLayer3D
pub const fn new(clip_index: usize) -> NlaLayer3D
Sourcepub fn with_weight(self, weight: f32) -> NlaLayer3D
pub fn with_weight(self, weight: f32) -> NlaLayer3D
Sourcepub fn with_blend_mode(self, blend_mode: NlaBlendMode) -> NlaLayer3D
pub fn with_blend_mode(self, blend_mode: NlaBlendMode) -> NlaLayer3D
Sourcepub fn with_repeat_mode(self, repeat_mode: NlaRepeatMode) -> NlaLayer3D
pub fn with_repeat_mode(self, repeat_mode: NlaRepeatMode) -> NlaLayer3D
Sourcepub fn with_time_scale(self, time_scale: f32) -> NlaLayer3D
pub fn with_time_scale(self, time_scale: f32) -> NlaLayer3D
Sourcepub fn with_joint_mask(self, joint_mask: u64) -> NlaLayer3D
pub fn with_joint_mask(self, joint_mask: u64) -> NlaLayer3D
Sourcepub fn start_crossfade(&mut self, target_weight: f32, duration_secs: f32)
pub fn start_crossfade(&mut self, target_weight: f32, duration_secs: f32)
Initiates a smooth linear crossfade from the current layer weight to target_weight over duration_secs.
§Arguments
&Self- Mutable NLA layer.f32- Destination blend weight in[0.0, 1.0].f32- Fade duration in seconds (<= 0.0snaps immediately).
Source§impl NlaLayer3D
impl NlaLayer3D
pub fn get_clip_index(&self) -> usize
pub fn get_mut_clip_index(&mut self) -> &mut usize
pub fn set_clip_index(&mut self, val: usize) -> &mut NlaLayer3D
pub fn get_weight(&self) -> f32
pub fn get_mut_weight(&mut self) -> &mut f32
pub fn set_weight(&mut self, val: f32) -> &mut NlaLayer3D
pub fn get_blend_mode(&self) -> NlaBlendMode
pub fn get_mut_blend_mode(&mut self) -> &mut NlaBlendMode
pub fn set_blend_mode(&mut self, val: NlaBlendMode) -> &mut NlaLayer3D
pub fn get_repeat_mode(&self) -> NlaRepeatMode
pub fn get_mut_repeat_mode(&mut self) -> &mut NlaRepeatMode
pub fn set_repeat_mode(&mut self, val: NlaRepeatMode) -> &mut NlaLayer3D
pub fn get_time_secs(&self) -> f32
pub fn get_mut_time_secs(&mut self) -> &mut f32
pub fn set_time_secs(&mut self, val: f32) -> &mut NlaLayer3D
pub fn get_time_scale(&self) -> f32
pub fn get_mut_time_scale(&mut self) -> &mut f32
pub fn set_time_scale(&mut self, val: f32) -> &mut NlaLayer3D
pub fn get_fade_elapsed_secs(&self) -> f32
pub fn get_mut_fade_elapsed_secs(&mut self) -> &mut f32
pub fn set_fade_elapsed_secs(&mut self, val: f32) -> &mut NlaLayer3D
pub fn get_fade_duration_secs(&self) -> f32
pub fn get_mut_fade_duration_secs(&mut self) -> &mut f32
pub fn set_fade_duration_secs(&mut self, val: f32) -> &mut NlaLayer3D
pub fn get_fade_start_weight(&self) -> f32
pub fn get_mut_fade_start_weight(&mut self) -> &mut f32
pub fn set_fade_start_weight(&mut self, val: f32) -> &mut NlaLayer3D
pub fn get_fade_target_weight(&self) -> f32
pub fn get_mut_fade_target_weight(&mut self) -> &mut f32
pub fn set_fade_target_weight(&mut self, val: f32) -> &mut NlaLayer3D
pub fn get_joint_mask(&self) -> u64
pub fn get_mut_joint_mask(&mut self) -> &mut u64
pub fn set_joint_mask(&mut self, val: u64) -> &mut NlaLayer3D
pub fn get_enabled(&self) -> bool
pub fn get_mut_enabled(&mut self) -> &mut bool
pub fn set_enabled(&mut self, val: bool) -> &mut NlaLayer3D
Trait Implementations§
Source§impl Clone for NlaLayer3D
impl Clone for NlaLayer3D
Source§fn clone(&self) -> NlaLayer3D
fn clone(&self) -> NlaLayer3D
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NlaLayer3D
Source§impl Debug for NlaLayer3D
impl Debug for NlaLayer3D
Source§impl Default for NlaLayer3D
Default playback configuration for NlaLayer3D.
impl Default for NlaLayer3D
Default playback configuration for NlaLayer3D.
Source§fn default() -> NlaLayer3D
fn default() -> NlaLayer3D
Returns an enabled looping override layer targeting clip 0 at full weight.
§Returns
Self- Default NLA layer.
Source§impl PartialEq for NlaLayer3D
impl PartialEq for NlaLayer3D
impl StructuralPartialEq for NlaLayer3D
Auto Trait Implementations§
impl Forget for NlaLayer3D
impl Freeze for NlaLayer3D
impl Move for NlaLayer3D
impl RefUnwindSafe for NlaLayer3D
impl Send for NlaLayer3D
impl Sync for NlaLayer3D
impl Unpin for NlaLayer3D
impl UnsafeUnpin for NlaLayer3D
impl UnwindSafe for NlaLayer3D
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