pub struct PrefabRef {
pub name: String,
pub prefab_path: AssetPath,
pub position: [f32; 3],
pub rotation: [f32; 4],
pub scale: [f32; 3],
}Expand description
A reference to a re-usable prefab template.
Fields§
§name: StringInstance name.
prefab_path: AssetPathPath to the source prefab asset.
position: [f32; 3]Override position.
rotation: [f32; 4]Override rotation (quaternion).
scale: [f32; 3]Override scale.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrefabRef
impl RefUnwindSafe for PrefabRef
impl Send for PrefabRef
impl Sync for PrefabRef
impl Unpin for PrefabRef
impl UnsafeUnpin for PrefabRef
impl UnwindSafe for PrefabRef
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