pub struct Behaviour {
pub m_Enabled: u8,
pub m_GameObject: PPtr,
}Expand description
Behaviour is a class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: Behaviours are Components that can be enabled or disabled. See Also: MonoBehaviour and Component.
Fields§
§m_Enabled: u8Enabled Behaviours are Updated, disabled Behaviours are not.
m_GameObject: PPtrThe game object this component is attached to. A component is always attached to a game object.
PPtr<GameObject>: (3.4.0 - 2022.3.2f1)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Behaviour
impl<'de> Deserialize<'de> for Behaviour
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Behaviour
impl RefUnwindSafe for Behaviour
impl Send for Behaviour
impl Sync for Behaviour
impl Unpin for Behaviour
impl UnwindSafe for Behaviour
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