INNER CODE UNIT · Rust

create_prefab_from

shawnscode/crayon · modules/world/src/lib.rs:56

pub fn create_prefab_from<T: AsRef<str>>(url: T) -> Result<PrefabHandle> {
    ctx().create_prefab_from(url)
}

/// Return the prefab obejct if exists.
#[inline]
pub fn prefab(handle: PrefabHandle) -> Option<Arc<Prefab>> {
    ctx().prefab(handle)
}

/// Query the resource state of specified prefab.
#[inline]
pub fn prefab_state(handle: PrefabHandle) -> ResourceState {
    ctx().prefab_state(handle)
}

/// Delete a prefab object from this world.
#[inline]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…