pub struct SerializedType {
pub class_id: i32,
pub stripped: bool,
pub script_type_index: i16,
pub script_id: Option<[u8; 16]>,
pub old_type_hash: [u8; 16],
}Expand description
One entry of a file’s type table: the class the objects of this type are of, as the file declares it.
Fields§
§class_id: i32Unity’s class id (1 GameObject, 4 Transform, 114 MonoBehaviour, …).
stripped: boolWhether the build stripped the class’s type tree.
script_type_index: i16Index into the script references (-1: none).
script_id: Option<[u8; 16]>The script’s 16-byte hash: present for a MonoBehaviour type, and for a reference type whose script index is not -1.
old_type_hash: [u8; 16]The 16-byte hash the file stores for the class’s layout.
Trait Implementations§
Source§impl Clone for SerializedType
impl Clone for SerializedType
Source§impl Debug for SerializedType
impl Debug for SerializedType
Source§impl PartialEq for SerializedType
impl PartialEq for SerializedType
impl StructuralPartialEq for SerializedType
Auto Trait Implementations§
impl Freeze for SerializedType
impl RefUnwindSafe for SerializedType
impl Send for SerializedType
impl Sync for SerializedType
impl Unpin for SerializedType
impl UnsafeUnpin for SerializedType
impl UnwindSafe for SerializedType
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