Trait IAsset

Source
pub trait IAsset {
    // Required method
    fn get_id(&self) -> &str;
}
Expand description

All StereoKit assets implement this interface! This is mostly to help group and hold Asset objects, and is particularly useful when working with Assets at a high level with the Assets class. https://stereokit.net/Pages/StereoKit/IAsset.html

Required Methods§

Source

fn get_id(&self) -> &str

gets the unique identifier of this asset resource! This can be helpful for debugging, managing your assets, or finding them later on! https://stereokit.net/Pages/StereoKit/IAsset/Id.html

Implementors§