Skip to main content

IComponentMethods

Trait IComponentMethods 

Source
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§

Source

fn get_transform(self) -> Transform

get_transform() overload

Source

fn get_game_object(self) -> GameObject

get_gameObject() overload

Source

fn get_component(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_2<M0: IlType + Copy + ClassIdentity>(self) -> M0

Source

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

Source

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

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn get_component_in_parent(self, t: impl Into<SystemType>) -> Component

GetComponentInParent(::unity::SystemType) overload

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

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 get_components_3<M0: IlType + Copy + ClassIdentity>(self) -> Array<M0>

Source

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

CompareTag(::unity::Il2CppString) overload

Source

fn ctor(self)

.ctor() 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: IComponent> IComponentMethods for __T

Available on crate feature unity_engine-component only.