pub enum AssetType {
Native(u32),
Script(u32),
}Expand description
Type of a Unity asset.
Native(classId) for built-in types (Sprite, Prefab, Texture2D, …).
Script(idx) for MonoBehaviour-backed assets — idx indexes into
AssetDb::script_types, whose entries are u128 script GUIDs that
match the guid field on entries in types.json.
Variants§
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for AssetType
impl<'__de, __Context> BorrowDecode<'__de, __Context> for AssetType
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
impl Copy for AssetType
impl Eq for AssetType
impl StructuralPartialEq for AssetType
Auto Trait Implementations§
impl Freeze for AssetType
impl RefUnwindSafe for AssetType
impl Send for AssetType
impl Sync for AssetType
impl Unpin for AssetType
impl UnsafeUnpin for AssetType
impl UnwindSafe for AssetType
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