pub struct UnityBehaviour {
pub behaviour: ObjRef,
pub script: String,
pub enabled: bool,
pub data: Vec<u8>,
}Expand description
A MonoBehaviour as stored: its script (namespace and class) and the script’s serialized fields, kept as bytes (a stripped build has no type tree for them).
Fields§
§behaviour: ObjRefThe MonoBehaviour object.
script: StringThe script’s class, namespace.class; empty when the script cannot be resolved.
enabled: boolm_Enabled.
data: Vec<u8>The script’s serialized fields, as bytes.
Trait Implementations§
Source§impl Clone for UnityBehaviour
impl Clone for UnityBehaviour
Source§impl Debug for UnityBehaviour
impl Debug for UnityBehaviour
Source§impl PartialEq for UnityBehaviour
impl PartialEq for UnityBehaviour
Source§impl Serialize for UnityBehaviour
impl Serialize for UnityBehaviour
impl StructuralPartialEq for UnityBehaviour
Auto Trait Implementations§
impl Freeze for UnityBehaviour
impl RefUnwindSafe for UnityBehaviour
impl Send for UnityBehaviour
impl Sync for UnityBehaviour
impl Unpin for UnityBehaviour
impl UnsafeUnpin for UnityBehaviour
impl UnwindSafe for UnityBehaviour
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