Struct skeletal_animation::manager::AssetManager
source · pub struct AssetManager<T: Transform> {
pub animation_clips: HashMap<String, Rc<AnimationClip<T>>>,
pub controller_defs: HashMap<String, AnimationControllerDef>,
}
Expand description
Asset manager - manages memory for loaded assets…?
Fields§
§animation_clips: HashMap<String, Rc<AnimationClip<T>>>
§controller_defs: HashMap<String, AnimationControllerDef>
Implementations§
source§impl<T: Transform> AssetManager<T>
impl<T: Transform> AssetManager<T>
pub fn new() -> AssetManager<T>
pub fn load_assets(&mut self, path: &str) -> Result<(), InvalidAssetPathError>
pub fn load_def_from_path<D>(path: &str) -> Result<D, &'static str>where D: Decodable,
Auto Trait Implementations§
impl<T> RefUnwindSafe for AssetManager<T>where T: RefUnwindSafe,
impl<T> !Send for AssetManager<T>
impl<T> !Sync for AssetManager<T>
impl<T> Unpin for AssetManager<T>
impl<T> UnwindSafe for AssetManager<T>where T: RefUnwindSafe,
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