pub fn load_bytes(path: &Path, bytes: &[u8]) -> Result<Document, LoadError>Expand description
Load an FBX byte slice into a core Document.
bytes supplies the top-level container exactly as captured by the
caller. path is retained for source provenance, diagnostics, and
resolving external resources relative to its parent directory.
§Errors
Returns LoadError::Path when path cannot be passed to ufbx,
LoadError::Fbx when the FBX container cannot be parsed, and
LoadError::Bake when an animation stack cannot be baked into the
linear TRS tracks that animsmith’s checks consume.