Struct oxygengine_core::prefab::PrefabManager [−][src]
pub struct PrefabManager { /* fields omitted */ }
Implementations
pub fn register_component_factory_proxy<T, P>(&mut self, name: &str) where
P: Prefab,
T: PrefabProxy<P> + Component + Send + Sync,
[src]pub fn instantiate_world(
&mut self,
name: &str,
world: &World
) -> Result<Vec<Entity>, PrefabError>
[src]pub fn instantiate_direct(
&mut self,
name: &str,
entities: &EntitiesRes,
lazy_update: &LazyUpdate,
state_token: StateToken
) -> Result<Vec<Entity>, PrefabError>
[src]pub fn instantiate_system_data<'s>(
&mut self,
name: &str,
(entities, lazy_update, lifecycle): &(Read<'s, EntitiesRes>, Read<'s, LazyUpdate>, ReadExpect<'s, AppLifeCycle>)
) -> Result<Vec<Entity>, PrefabError>
[src]pub fn load_scene_from_prefab_world(
&mut self,
prefab: &PrefabScene,
world: &World
) -> Result<Vec<Entity>, PrefabError>
[src]pub fn load_scene_from_prefab_direct(
&mut self,
prefab: &PrefabScene,
entities: &EntitiesRes,
lazy_update: &LazyUpdate,
state_token: StateToken
) -> Result<Vec<Entity>, PrefabError>
[src]pub fn load_scene_from_prefab_system_data<'s>(
&mut self,
prefab: &PrefabScene,
(entities, lazy_update, lifecycle): &(Read<'s, EntitiesRes>, Read<'s, LazyUpdate>, ReadExpect<'s, AppLifeCycle>)
) -> Result<Vec<Entity>, PrefabError>
[src]Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PrefabManager
impl Send for PrefabManager
impl Sync for PrefabManager
impl Unpin for PrefabManager
impl UnwindSafe for PrefabManager
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more
Tries to create the default.
Calls try_default
and panics on an error case.