pub struct SoftObjectRef<T: UeClass> { /* private fields */ }Expand description
A soft reference to an object of class T: its path
(/Game/Meshes/SM_Rifle.SM_Rifle), loaded on demand. A #[uproperty] or
#[ustruct] field of this type is a TSoftObjectPtr<T>.
Implementations§
Source§impl<T: UeClass> SoftObjectRef<T>
impl<T: UeClass> SoftObjectRef<T>
Sourcepub fn get(&self) -> UObjectRef<T>
pub fn get(&self) -> UObjectRef<T>
The object if it is loaded, without loading it (TSoftObjectPtr::Get).
Sourcepub fn load_synchronous(&self) -> RustealResult<UObjectRef<T>>
pub fn load_synchronous(&self) -> RustealResult<UObjectRef<T>>
The object, loaded if it is not (TSoftObjectPtr::LoadSynchronous); a
null reference for none.
Trait Implementations§
Source§impl<T: UeClass> Clone for SoftObjectRef<T>
impl<T: UeClass> Clone for SoftObjectRef<T>
Source§impl<T: UeClass> Debug for SoftObjectRef<T>
impl<T: UeClass> Debug for SoftObjectRef<T>
Source§impl<T: UeClass> Default for SoftObjectRef<T>
impl<T: UeClass> Default for SoftObjectRef<T>
impl<T: UeClass> Eq for SoftObjectRef<T>
Auto Trait Implementations§
impl<T> Freeze for SoftObjectRef<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for SoftObjectRef<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for SoftObjectRef<T>where
PhantomData<T>: Send,
impl<T> Sync for SoftObjectRef<T>where
PhantomData<T>: Sync,
impl<T> Unpin for SoftObjectRef<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for SoftObjectRef<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for SoftObjectRef<T>where
PhantomData<T>: UnwindSafe,
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