pub struct GameObject {
pub m_Component: Vec<Enum_ComponentPair___i32__PPtr>,
pub m_IsActive: Enum_u8__bool,
pub m_Layer: u32,
pub m_Name: String,
pub m_Tag: u16,
}
Expand description
GameObject is a class of the Unity engine since version 3.4.0.
Exert from Unity’s scripting documentation:
Base class for all entities in Unity Scenes.
Note: Many variables in the GameObject class have been removed. To access GameObject.renderer in csharp, for example, use GetComponent
Fields§
§m_Component: Vec<Enum_ComponentPair___i32__PPtr>
Vec<(i32, PPtr<Component
>)>: (3.4.0 - 5.4.6f3); Vec
m_IsActive: Enum_u8__bool
§m_Layer: u32
The layer the GameObject is in.
m_Name: String
The name of the object.
m_Tag: u16
The tag of this GameObject.
Trait Implementations§
Source§impl Debug for GameObject
impl Debug for GameObject
Source§impl<'de> Deserialize<'de> for GameObject
impl<'de> Deserialize<'de> for GameObject
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 GameObject
impl RefUnwindSafe for GameObject
impl Send for GameObject
impl Sync for GameObject
impl Unpin for GameObject
impl UnwindSafe for GameObject
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