pub trait IComponentMethods: IComponent {
Show 26 methods
// Provided methods
fn get_transform(self) -> Transform { ... }
fn get_game_object(self) -> GameObject { ... }
fn get_component(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_2<M0: IlType + Copy + ClassIdentity>(self) -> M0 { ... }
fn try_get_component<M0: IlType + Copy + ClassIdentity>(
self,
component: impl Into<*mut M0>,
) -> bool { ... }
fn get_component_in_children(
self,
t: impl Into<SystemType>,
include_inactive: impl Into<bool>,
) -> Component { ... }
fn get_component_in_children_2<M0: IlType + Copy + ClassIdentity>(
self,
include_inactive: impl Into<bool>,
) -> M0 { ... }
fn get_component_in_children_3<M0: IlType + Copy + ClassIdentity>(
self,
) -> M0 { ... }
fn get_components_in_children<M0: IlType + Copy + ClassIdentity>(
self,
include_inactive: impl Into<bool>,
) -> Array<M0> { ... }
fn get_components_in_children_2<M0: IlType + Copy + ClassIdentity>(
self,
include_inactive: impl Into<bool>,
result: impl Into<List_1<M0>>,
) { ... }
fn get_components_in_children_3<M0: IlType + Copy + ClassIdentity>(
self,
) -> Array<M0> { ... }
fn get_components_in_children_4<M0: IlType + Copy + ClassIdentity>(
self,
results: impl Into<List_1<M0>>,
) { ... }
fn get_component_in_parent(self, t: impl Into<SystemType>) -> Component { ... }
fn get_component_in_parent_2<M0: IlType + Copy + ClassIdentity>(self) -> M0 { ... }
fn get_components_in_parent<M0: IlType + Copy + ClassIdentity>(
self,
include_inactive: impl Into<bool>,
) -> Array<M0> { ... }
fn get_components_in_parent_2<M0: IlType + Copy + ClassIdentity>(
self,
include_inactive: impl Into<bool>,
results: impl Into<List_1<M0>>,
) { ... }
fn get_components_in_parent_3<M0: IlType + Copy + ClassIdentity>(
self,
) -> Array<M0> { ... }
fn get_components_for_list_internal(
self,
search_type: impl Into<SystemType>,
result_list: impl Into<Object>,
) { ... }
fn get_components(
self,
type: impl Into<SystemType>,
results: impl Into<List_1<Component>>,
) { ... }
fn get_components_2<M0: IlType + Copy + ClassIdentity>(
self,
results: impl Into<List_1<M0>>,
) { ... }
fn get_tag(self) -> Il2CppString { ... }
fn set_tag(self, value: impl Into<Il2CppString>) { ... }
fn get_components_3<M0: IlType + Copy + ClassIdentity>(self) -> Array<M0> { ... }
fn compare_tag(self, tag: impl Into<Il2CppString>) -> bool { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn get_transform(self) -> Transform
fn get_transform(self) -> Transform
get_transform() overload
Sourcefn get_game_object(self) -> GameObject
fn get_game_object(self) -> GameObject
get_gameObject() overload
Sourcefn get_component(self, type: impl Into<SystemType>) -> Component
fn get_component(self, type: impl Into<SystemType>) -> Component
GetComponent(::unity::SystemType) overload
Sourcefn get_component_fast_path(
self,
type: impl Into<SystemType>,
one_further_than_result_value: impl Into<IntPtr>,
)
fn get_component_fast_path( self, type: impl Into<SystemType>, one_further_than_result_value: impl Into<IntPtr>, )
GetComponentFastPath(::unity::SystemType, ::unity::IntPtr) overload
fn get_component_2<M0: IlType + Copy + ClassIdentity>(self) -> M0
fn try_get_component<M0: IlType + Copy + ClassIdentity>( self, component: impl Into<*mut M0>, ) -> bool
Sourcefn get_component_in_children(
self,
t: impl Into<SystemType>,
include_inactive: impl Into<bool>,
) -> Component
fn get_component_in_children( self, t: impl Into<SystemType>, include_inactive: impl Into<bool>, ) -> Component
GetComponentInChildren(::unity::SystemType, bool) overload
fn get_component_in_children_2<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> M0
fn get_component_in_children_3<M0: IlType + Copy + ClassIdentity>(self) -> M0
fn get_components_in_children<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> Array<M0>
fn get_components_in_children_2<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, result: impl Into<List_1<M0>>, )
fn get_components_in_children_3<M0: IlType + Copy + ClassIdentity>( self, ) -> Array<M0>
fn get_components_in_children_4<M0: IlType + Copy + ClassIdentity>( self, results: impl Into<List_1<M0>>, )
Sourcefn get_component_in_parent(self, t: impl Into<SystemType>) -> Component
fn get_component_in_parent(self, t: impl Into<SystemType>) -> Component
GetComponentInParent(::unity::SystemType) overload
fn get_component_in_parent_2<M0: IlType + Copy + ClassIdentity>(self) -> M0
fn get_components_in_parent<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, ) -> Array<M0>
fn get_components_in_parent_2<M0: IlType + Copy + ClassIdentity>( self, include_inactive: impl Into<bool>, results: impl Into<List_1<M0>>, )
fn get_components_in_parent_3<M0: IlType + Copy + ClassIdentity>( self, ) -> Array<M0>
Sourcefn get_components_for_list_internal(
self,
search_type: impl Into<SystemType>,
result_list: impl Into<Object>,
)
fn get_components_for_list_internal( self, search_type: impl Into<SystemType>, result_list: impl Into<Object>, )
GetComponentsForListInternal(::unity::SystemType, crate::system::object::Object) overload
Sourcefn get_components(
self,
type: impl Into<SystemType>,
results: impl Into<List_1<Component>>,
)
fn get_components( 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
fn get_components_2<M0: IlType + Copy + ClassIdentity>( self, results: impl Into<List_1<M0>>, )
Sourcefn get_tag(self) -> Il2CppString
fn get_tag(self) -> Il2CppString
get_tag() overload
Sourcefn set_tag(self, value: impl Into<Il2CppString>)
fn set_tag(self, value: impl Into<Il2CppString>)
set_tag(::unity::Il2CppString) overload
fn get_components_3<M0: IlType + Copy + ClassIdentity>(self) -> Array<M0>
Sourcefn compare_tag(self, tag: impl Into<Il2CppString>) -> bool
fn compare_tag(self, tag: impl Into<Il2CppString>) -> bool
CompareTag(::unity::Il2CppString) 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§
impl<__T: IComponent> IComponentMethods for __T
Available on crate feature
unity_engine-component only.