pub struct Document {
pub skeleton: Skeleton,
pub clips: Vec<Clip>,
pub assets: SceneAssets,
pub source: SourceInfo,
}Expand description
A loaded file: one skeleton, any number of clips targeting it, and
the scene assets (meshes, materials, and textures) that rode in alongside
them.
assets is default-empty: the check catalog judges animation and
ignores it, but the load/write round-trip carries it so transform
and convert preserve geometry instead of silently dropping it.
Fields§
§skeleton: SkeletonSkeleton shared by every clip.
clips: Vec<Clip>Animation clips targeting Document::skeleton.
assets: SceneAssetsMeshes, materials, and textures carried by the loaded scene.
source: SourceInfoOptional source provenance.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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