pub struct AnimationReloadEntry {
pub target: SkinnedMeshHandle,
pub clip_index: usize,
pub source: String,
pub skin_index: u32,
pub animation_index: u32,
pub animation_name: String,
pub sample_rate: f32,
pub weight: f32,
pub looping: bool,
}Expand description
One hot-reload entry for a file-backed Animation. Captured at init
alongside the runtime clip; consulted by the per-step reload pass when the
shared PENDING_ANIMATIONS flag fires (see
crate::app::dev_flags::take_pending_animations). Inline-authored
animations (no source) carry no entry; there’s no file to watch and
the build pipeline never expanded one.
pub (with public fields) because the editor crate’s hot-reload drive reads
these to re-import the clip from source, then pushes the result back through
AnimationSystem::apply_reloaded_clip. The GLB decode itself lives in the
editor crate; the runtime crate only stores the catalogue.
Fields§
§target: SkinnedMeshHandleEntityTarget SkinnedMesh handle, also the key into
AnimationSystem::targets where this clip lives.
clip_index: usizePosition in the target bucket’s clips. Set at init when the clip is
first pushed; stable for the process lifetime since the Vec is
neither rebuilt nor trimmed.
source: String.glb source path verbatim from the asset declaration; used as-is by
the GLB parser at reload time.
skin_index: u32The target mesh’s skin_index: the clip re-imports
against the same skeleton the build cooked it against.
animation_index: u32Mirrors Animation::animation_index.
animation_name: StringMirrors Animation::animation_name (precedence over index when
non-empty).
sample_rate: f32Mirrors Animation::sample_rate; the FBX reload path bakes at the
same rate the build used.
weight: f32Mirrors Animation::weight; the .glb has nothing equivalent, so
it’s carried through the reload unchanged.
looping: boolMirrors Animation::looping; same rationale as weight.
Trait Implementations§
Source§impl Clone for AnimationReloadEntry
impl Clone for AnimationReloadEntry
Source§fn clone(&self) -> AnimationReloadEntry
fn clone(&self) -> AnimationReloadEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for AnimationReloadEntry
impl RefUnwindSafe for AnimationReloadEntry
impl Send for AnimationReloadEntry
impl Sync for AnimationReloadEntry
impl Unpin for AnimationReloadEntry
impl UnsafeUnpin for AnimationReloadEntry
impl UnwindSafe for AnimationReloadEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> 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> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more