Skip to main content

IGameObjectMethods

Trait IGameObjectMethods 

Source
pub trait IGameObjectMethods: IGameObject {
Show 70 methods // Provided methods fn get_component<M0: IlType + Copy + ClassIdentity>(self) -> M0 { ... } fn get_component_2(self, type: impl Into<SystemType>) -> Component { ... } fn get_component_fast_path( self, type: impl Into<SystemType>, one_further_than_result_value: impl Into<IntPtr>, ) { ... } fn get_component_by_name(self, type: impl Into<Il2CppString>) -> Component { ... } fn get_component_3(self, type: impl Into<Il2CppString>) -> Component { ... } fn get_component_in_children( self, type: impl Into<SystemType>, include_inactive: impl Into<bool>, ) -> Component { ... } fn get_component_in_children_2( self, type: impl Into<SystemType>, ) -> Component { ... } fn get_component_in_children_3<M0: IlType + Copy + ClassIdentity>( self, ) -> M0 { ... } fn get_component_in_children_4<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> M0 { ... } fn get_component_in_parent( self, type: impl Into<SystemType>, include_inactive: impl Into<bool>, ) -> Component { ... } fn get_component_in_parent_2(self, type: impl Into<SystemType>) -> Component { ... } fn get_component_in_parent_3<M0: IlType + Copy + ClassIdentity>(self) -> M0 { ... } fn get_component_in_parent_4<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> M0 { ... } fn get_components_internal( self, type: impl Into<SystemType>, use_search_type_as_array_return_type: impl Into<bool>, recursive: impl Into<bool>, include_inactive: impl Into<bool>, reverse: impl Into<bool>, result_list: impl Into<Object>, ) -> IlInstance { ... } fn get_components(self, type: impl Into<SystemType>) -> Array<Component> { ... } fn get_components_2<M0: IlType + Copy + ClassIdentity>(self) -> Array<M0> { ... } fn get_components_3( self, type: impl Into<SystemType>, results: impl Into<List_1<Component>>, ) { ... } fn get_components_4<M0: IlType + Copy + ClassIdentity>( self, results: impl Into<List_1<M0>>, ) { ... } fn get_components_in_children( self, type: impl Into<SystemType>, ) -> Array<Component> { ... } fn get_components_in_children_2( self, type: impl Into<SystemType>, include_inactive: impl Into<bool>, ) -> Array<Component> { ... } fn get_components_in_children_3<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> Array<M0> { ... } fn get_components_in_children_4<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, results: impl Into<List_1<M0>>, ) { ... } fn get_components_in_children_5<M0: IlType + Copy + ClassIdentity>( self, ) -> Array<M0> { ... } fn get_components_in_children_6<M0: IlType + Copy + ClassIdentity>( self, results: impl Into<List_1<M0>>, ) { ... } fn get_components_in_parent( self, type: impl Into<SystemType>, ) -> Array<Component> { ... } fn get_components_in_parent_2( self, type: impl Into<SystemType>, include_inactive: impl Into<bool>, ) -> Array<Component> { ... } fn get_components_in_parent_3<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, results: impl Into<List_1<M0>>, ) { ... } fn get_components_in_parent_4<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> Array<M0> { ... } fn get_components_in_parent_5<M0: IlType + Copy + ClassIdentity>( self, ) -> Array<M0> { ... } fn try_get_component<M0: IlType + Copy + ClassIdentity>( self, component: impl Into<*mut M0>, ) -> bool { ... } fn try_get_component_2( self, type: impl Into<SystemType>, ) -> (bool, Component) { ... } fn try_get_component_internal( self, type: impl Into<SystemType>, ) -> Component { ... } fn try_get_component_fast_path( self, type: impl Into<SystemType>, one_further_than_result_value: impl Into<IntPtr>, ) { ... } fn send_message_upwards( self, method_name: impl Into<Il2CppString>, options: impl Into<SendMessageOptions>, ) { ... } fn send_message( self, method_name: impl Into<Il2CppString>, options: impl Into<SendMessageOptions>, ) { ... } fn broadcast_message( self, method_name: impl Into<Il2CppString>, options: impl Into<SendMessageOptions>, ) { ... } fn add_component_internal( self, class_name: impl Into<Il2CppString>, ) -> Component { ... } fn internal_add_component_with_type( self, component_type: impl Into<SystemType>, ) -> Component { ... } fn add_component(self, component_type: impl Into<SystemType>) -> Component { ... } fn add_component_2<M0: IlType + Copy + ClassIdentity>(self) -> M0 { ... } fn get_transform(self) -> Transform { ... } fn get_layer(self) -> i32 { ... } fn set_layer(self, value: impl Into<i32>) { ... } fn get_active(self) -> bool { ... } fn set_active(self, value: impl Into<bool>) { ... } fn get_active_self(self) -> bool { ... } fn get_active_in_hierarchy(self) -> bool { ... } fn set_active_recursively(self, state: impl Into<bool>) { ... } fn get_is_static(self) -> bool { ... } fn set_is_static(self, value: impl Into<bool>) { ... } fn get_is_static_batchable(self) -> bool { ... } fn get_tag(self) -> Il2CppString { ... } fn set_tag(self, value: impl Into<Il2CppString>) { ... } fn compare_tag(self, tag: impl Into<Il2CppString>) -> bool { ... } fn send_message_upwards_2( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, options: impl Into<SendMessageOptions>, ) { ... } fn send_message_upwards_3( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, ) { ... } fn send_message_upwards_4(self, method_name: impl Into<Il2CppString>) { ... } fn send_message_2( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, options: impl Into<SendMessageOptions>, ) { ... } fn send_message_3( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, ) { ... } fn send_message_4(self, method_name: impl Into<Il2CppString>) { ... } fn broadcast_message_2( self, method_name: impl Into<Il2CppString>, parameter: impl Into<Object>, options: impl Into<SendMessageOptions>, ) { ... } fn broadcast_message_3( self, method_name: impl Into<Il2CppString>, parameter: impl Into<Object>, ) { ... } fn broadcast_message_4(self, method_name: impl Into<Il2CppString>) { ... } fn ctor(self, name: impl Into<Il2CppString>) { ... } fn ctor_2(self) { ... } fn ctor_3( self, name: impl Into<Il2CppString>, components: impl Into<Array<SystemType>>, ) { ... } fn get_scene(self) -> Scene { ... } fn get_scene_culling_mask(self) -> u64 { ... } fn get_game_object(self) -> GameObject { ... } fn get_scene_injected(self) -> Scene { ... }
}

Provided Methods§

Source

fn get_component<M0: IlType + Copy + ClassIdentity>(self) -> M0

Source

fn get_component_2(self, type: impl Into<SystemType>) -> Component

GetComponent(::unity::SystemType) overload

Source

fn get_component_fast_path( self, type: impl Into<SystemType>, one_further_than_result_value: impl Into<IntPtr>, )

GetComponentFastPath(::unity::SystemType, ::unity::IntPtr) overload

Source

fn get_component_by_name(self, type: impl Into<Il2CppString>) -> Component

GetComponentByName(::unity::Il2CppString) overload

Source

fn get_component_3(self, type: impl Into<Il2CppString>) -> Component

GetComponent(::unity::Il2CppString) overload

Source

fn get_component_in_children( self, type: impl Into<SystemType>, include_inactive: impl Into<bool>, ) -> Component

GetComponentInChildren(::unity::SystemType, bool) overload

Source

fn get_component_in_children_2(self, type: impl Into<SystemType>) -> Component

GetComponentInChildren(::unity::SystemType) overload

Source

fn get_component_in_children_3<M0: IlType + Copy + ClassIdentity>(self) -> M0

Source

fn get_component_in_children_4<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> M0

Source

fn get_component_in_parent( self, type: impl Into<SystemType>, include_inactive: impl Into<bool>, ) -> Component

GetComponentInParent(::unity::SystemType, bool) overload

Source

fn get_component_in_parent_2(self, type: impl Into<SystemType>) -> Component

GetComponentInParent(::unity::SystemType) overload

Source

fn get_component_in_parent_3<M0: IlType + Copy + ClassIdentity>(self) -> M0

Source

fn get_component_in_parent_4<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> M0

Source

fn get_components_internal( self, type: impl Into<SystemType>, use_search_type_as_array_return_type: impl Into<bool>, recursive: impl Into<bool>, include_inactive: impl Into<bool>, reverse: impl Into<bool>, result_list: impl Into<Object>, ) -> IlInstance

GetComponentsInternal(::unity::SystemType, bool, bool, bool, bool, crate::system::object::Object) overload

Source

fn get_components(self, type: impl Into<SystemType>) -> Array<Component>

GetComponents(::unity::SystemType) overload

Source

fn get_components_2<M0: IlType + Copy + ClassIdentity>(self) -> Array<M0>

Source

fn get_components_3( self, type: impl Into<SystemType>, results: impl Into<List_1<Component>>, )

GetComponents(::unity::SystemType, crate::system::collections::generic::list_1::List_1<crate::unity_engine::component::Component>) overload

Source

fn get_components_4<M0: IlType + Copy + ClassIdentity>( self, results: impl Into<List_1<M0>>, )

Source

fn get_components_in_children( self, type: impl Into<SystemType>, ) -> Array<Component>

GetComponentsInChildren(::unity::SystemType) overload

Source

fn get_components_in_children_2( self, type: impl Into<SystemType>, include_inactive: impl Into<bool>, ) -> Array<Component>

GetComponentsInChildren(::unity::SystemType, bool) overload

Source

fn get_components_in_children_3<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> Array<M0>

Source

fn get_components_in_children_4<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, results: impl Into<List_1<M0>>, )

Source

fn get_components_in_children_5<M0: IlType + Copy + ClassIdentity>( self, ) -> Array<M0>

Source

fn get_components_in_children_6<M0: IlType + Copy + ClassIdentity>( self, results: impl Into<List_1<M0>>, )

Source

fn get_components_in_parent( self, type: impl Into<SystemType>, ) -> Array<Component>

GetComponentsInParent(::unity::SystemType) overload

Source

fn get_components_in_parent_2( self, type: impl Into<SystemType>, include_inactive: impl Into<bool>, ) -> Array<Component>

GetComponentsInParent(::unity::SystemType, bool) overload

Source

fn get_components_in_parent_3<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, results: impl Into<List_1<M0>>, )

Source

fn get_components_in_parent_4<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> Array<M0>

Source

fn get_components_in_parent_5<M0: IlType + Copy + ClassIdentity>( self, ) -> Array<M0>

Source

fn try_get_component<M0: IlType + Copy + ClassIdentity>( self, component: impl Into<*mut M0>, ) -> bool

Source

fn try_get_component_2(self, type: impl Into<SystemType>) -> (bool, Component)

TryGetComponent(::unity::SystemType, *mutcrate::unity_engine::component::Component) overload

Source

fn try_get_component_internal(self, type: impl Into<SystemType>) -> Component

TryGetComponentInternal(::unity::SystemType) overload

Source

fn try_get_component_fast_path( self, type: impl Into<SystemType>, one_further_than_result_value: impl Into<IntPtr>, )

TryGetComponentFastPath(::unity::SystemType, ::unity::IntPtr) overload

Source

fn send_message_upwards( self, method_name: impl Into<Il2CppString>, options: impl Into<SendMessageOptions>, )

SendMessageUpwards(::unity::Il2CppString, crate::unity_engine::sendmessageoptions::SendMessageOptions) overload

Source

fn send_message( self, method_name: impl Into<Il2CppString>, options: impl Into<SendMessageOptions>, )

SendMessage(::unity::Il2CppString, crate::unity_engine::sendmessageoptions::SendMessageOptions) overload

Source

fn broadcast_message( self, method_name: impl Into<Il2CppString>, options: impl Into<SendMessageOptions>, )

BroadcastMessage(::unity::Il2CppString, crate::unity_engine::sendmessageoptions::SendMessageOptions) overload

Source

fn add_component_internal( self, class_name: impl Into<Il2CppString>, ) -> Component

AddComponentInternal(::unity::Il2CppString) overload

Source

fn internal_add_component_with_type( self, component_type: impl Into<SystemType>, ) -> Component

Internal_AddComponentWithType(::unity::SystemType) overload

Source

fn add_component(self, component_type: impl Into<SystemType>) -> Component

AddComponent(::unity::SystemType) overload

Source

fn add_component_2<M0: IlType + Copy + ClassIdentity>(self) -> M0

Source

fn get_transform(self) -> Transform

get_transform() overload

Source

fn get_layer(self) -> i32

get_layer() overload

Source

fn set_layer(self, value: impl Into<i32>)

set_layer(i32) overload

Source

fn get_active(self) -> bool

get_active() overload

Source

fn set_active(self, value: impl Into<bool>)

set_active(bool) overload

Source

fn get_active_self(self) -> bool

get_activeSelf() overload

Source

fn get_active_in_hierarchy(self) -> bool

get_activeInHierarchy() overload

Source

fn set_active_recursively(self, state: impl Into<bool>)

SetActiveRecursively(bool) overload

Source

fn get_is_static(self) -> bool

get_isStatic() overload

Source

fn set_is_static(self, value: impl Into<bool>)

set_isStatic(bool) overload

Source

fn get_is_static_batchable(self) -> bool

get_isStaticBatchable() overload

Source

fn get_tag(self) -> Il2CppString

get_tag() overload

Source

fn set_tag(self, value: impl Into<Il2CppString>)

set_tag(::unity::Il2CppString) overload

Source

fn compare_tag(self, tag: impl Into<Il2CppString>) -> bool

CompareTag(::unity::Il2CppString) overload

Source

fn send_message_upwards_2( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, options: impl Into<SendMessageOptions>, )

SendMessageUpwards(::unity::Il2CppString, crate::system::object::Object, crate::unity_engine::sendmessageoptions::SendMessageOptions) overload

Source

fn send_message_upwards_3( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, )

SendMessageUpwards(::unity::Il2CppString, crate::system::object::Object) overload

Source

fn send_message_upwards_4(self, method_name: impl Into<Il2CppString>)

SendMessageUpwards(::unity::Il2CppString) overload

Source

fn send_message_2( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, options: impl Into<SendMessageOptions>, )

SendMessage(::unity::Il2CppString, crate::system::object::Object, crate::unity_engine::sendmessageoptions::SendMessageOptions) overload

Source

fn send_message_3( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, )

SendMessage(::unity::Il2CppString, crate::system::object::Object) overload

Source

fn send_message_4(self, method_name: impl Into<Il2CppString>)

SendMessage(::unity::Il2CppString) overload

Source

fn broadcast_message_2( self, method_name: impl Into<Il2CppString>, parameter: impl Into<Object>, options: impl Into<SendMessageOptions>, )

BroadcastMessage(::unity::Il2CppString, crate::system::object::Object, crate::unity_engine::sendmessageoptions::SendMessageOptions) overload

Source

fn broadcast_message_3( self, method_name: impl Into<Il2CppString>, parameter: impl Into<Object>, )

BroadcastMessage(::unity::Il2CppString, crate::system::object::Object) overload

Source

fn broadcast_message_4(self, method_name: impl Into<Il2CppString>)

BroadcastMessage(::unity::Il2CppString) overload

Source

fn ctor(self, name: impl Into<Il2CppString>)

.ctor(::unity::Il2CppString) overload

Source

fn ctor_2(self)

.ctor() overload

Source

fn ctor_3( self, name: impl Into<Il2CppString>, components: impl Into<Array<SystemType>>, )

.ctor(::unity::Il2CppString, ::unity::Array<::unity::SystemType>) overload

Source

fn get_scene(self) -> Scene

get_scene() overload

Source

fn get_scene_culling_mask(self) -> u64

get_sceneCullingMask() overload

Source

fn get_game_object(self) -> GameObject

get_gameObject() overload

Source

fn get_scene_injected(self) -> Scene

get_scene_Injected(*mutcrate::unity_engine::scene_management::scene::Scene) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IGameObject> IGameObjectMethods for __T

Available on crate feature unity_engine-gameobject only.