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],
pub tree: Option<Arc<TypeTree>>,
pub dependencies: Vec<i32>,
pub reference: Option<ReferenceClass>,
}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.
tree: Option<Arc<TypeTree>>The type tree the file stores for the type, when it stores trees (an AssetBundle’s files do). A MonoBehaviour type’s tree holds its script’s fields too.
dependencies: Vec<i32>The types a type’s tree refers to (the file’s type indices), for a type of a file that stores trees.
reference: Option<ReferenceClass>The managed class a reference type stands for, for a reference type of a file that stores trees.