Skip to main content

IResourceObjectMethods

Trait IResourceObjectMethods 

Source
pub trait IResourceObjectMethods: IResourceObject {
Show 35 methods // Provided methods fn update(self) { ... } fn on_destroy(self) { ... } fn create(self) { ... } fn release(self) { ... } fn can_skip(self) -> bool { ... } fn tick(self) -> bool { ... } fn tick_bind(self) { ... } fn is_terminated(self) -> bool { ... } fn load_async<M0: IlType + Copy + ClassIdentity>( self, path: impl Into<Il2CppString>, ) { ... } fn set_start_callback( self, callback: impl Into<ResourceObject_Callback>, ) -> ResourceObject { ... } fn set_tick_callback( self, callback: impl Into<ResourceObject_Callback>, ) -> ResourceObject { ... } fn set_end_callback( self, callback: impl Into<ResourceObject_Callback>, ) -> ResourceObject { ... } fn set_coroutine( self, coroutine: impl Into<ResourceObject_Coroutine>, ) -> ResourceObject { ... } fn set_position(self, position: impl Into<Vector3>) -> ResourceObject { ... } fn set_position_2( self, x: impl Into<f32>, y: impl Into<f32>, z: impl Into<f32>, ) -> ResourceObject { ... } fn set_rotation(self, rotation: impl Into<Quaternion>) -> ResourceObject { ... } fn set_rotation_2( self, x: impl Into<f32>, y: impl Into<f32>, z: impl Into<f32>, ) -> ResourceObject { ... } fn set_scale(self, scale: impl Into<Vector3>) -> ResourceObject { ... } fn set_scale_2(self, scale: impl Into<f32>) -> ResourceObject { ... } fn set_scale_3( self, x: impl Into<f32>, y: impl Into<f32>, z: impl Into<f32>, ) -> ResourceObject { ... } fn set_sound(self, sound_label: impl Into<Il2CppString>) -> ResourceObject { ... } fn set_endless(self, enable: impl Into<bool>) -> ResourceObject { ... } fn set_can_skip(self, enable: impl Into<bool>) -> ResourceObject { ... } fn set_life(self, time: impl Into<f32>) -> ResourceObject { ... } fn is_endless(self) -> bool { ... } fn destroy(self) { ... } fn set_delay_time(self, time: impl Into<f32>) -> ResourceObject { ... } fn try_start_callback(self) -> ResourceObject { ... } fn try_end_callback(self) -> ResourceObject { ... } fn try_bind(self, super_: impl Into<ProcInst>) -> ResourceObject { ... } fn try_bind_2(self, binder: impl Into<BindHolder>) -> ResourceObject { ... } fn try_bind_3( self, super_: impl Into<ProcInst>, time: impl Into<f32>, ) -> ResourceObject { ... } fn try_bind_4( self, binder: impl Into<BindHolder>, time: impl Into<f32>, ) -> ResourceObject { ... } fn try_unbind(self) -> ResourceObject { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn update(self)

Update() overload

Source

fn on_destroy(self)

OnDestroy() overload

Source

fn create(self)

Create() overload

Source

fn release(self)

Release() overload

Source

fn can_skip(self) -> bool

CanSkip() overload

Source

fn tick(self) -> bool

Tick() overload

Source

fn tick_bind(self)

TickBind() overload

Source

fn is_terminated(self) -> bool

IsTerminated() overload

Source

fn load_async<M0: IlType + Copy + ClassIdentity>( self, path: impl Into<Il2CppString>, )

Source

fn set_start_callback( self, callback: impl Into<ResourceObject_Callback>, ) -> ResourceObject

SetStartCallback(crate::app::resourceobject::ResourceObject_Callback) overload

Source

fn set_tick_callback( self, callback: impl Into<ResourceObject_Callback>, ) -> ResourceObject

SetTickCallback(crate::app::resourceobject::ResourceObject_Callback) overload

Source

fn set_end_callback( self, callback: impl Into<ResourceObject_Callback>, ) -> ResourceObject

SetEndCallback(crate::app::resourceobject::ResourceObject_Callback) overload

Source

fn set_coroutine( self, coroutine: impl Into<ResourceObject_Coroutine>, ) -> ResourceObject

SetCoroutine(crate::app::resourceobject::ResourceObject_Coroutine) overload

Source

fn set_position(self, position: impl Into<Vector3>) -> ResourceObject

SetPosition(crate::unity_engine::vector3::Vector3) overload

Source

fn set_position_2( self, x: impl Into<f32>, y: impl Into<f32>, z: impl Into<f32>, ) -> ResourceObject

SetPosition(f32, f32, f32) overload

Source

fn set_rotation(self, rotation: impl Into<Quaternion>) -> ResourceObject

SetRotation(crate::unity_engine::quaternion::Quaternion) overload

Source

fn set_rotation_2( self, x: impl Into<f32>, y: impl Into<f32>, z: impl Into<f32>, ) -> ResourceObject

SetRotation(f32, f32, f32) overload

Source

fn set_scale(self, scale: impl Into<Vector3>) -> ResourceObject

SetScale(crate::unity_engine::vector3::Vector3) overload

Source

fn set_scale_2(self, scale: impl Into<f32>) -> ResourceObject

SetScale(f32) overload

Source

fn set_scale_3( self, x: impl Into<f32>, y: impl Into<f32>, z: impl Into<f32>, ) -> ResourceObject

SetScale(f32, f32, f32) overload

Source

fn set_sound(self, sound_label: impl Into<Il2CppString>) -> ResourceObject

SetSound(::unity::Il2CppString) overload

Source

fn set_endless(self, enable: impl Into<bool>) -> ResourceObject

SetEndless(bool) overload

Source

fn set_can_skip(self, enable: impl Into<bool>) -> ResourceObject

SetCanSkip(bool) overload

Source

fn set_life(self, time: impl Into<f32>) -> ResourceObject

SetLife(f32) overload

Source

fn is_endless(self) -> bool

IsEndless() overload

Source

fn destroy(self)

Destroy() overload

Source

fn set_delay_time(self, time: impl Into<f32>) -> ResourceObject

SetDelayTime(f32) overload

Source

fn try_start_callback(self) -> ResourceObject

TryStartCallback() overload

Source

fn try_end_callback(self) -> ResourceObject

TryEndCallback() overload

Source

fn try_bind(self, super_: impl Into<ProcInst>) -> ResourceObject

TryBind(crate::app::procinst::ProcInst) overload

Source

fn try_bind_2(self, binder: impl Into<BindHolder>) -> ResourceObject

TryBind(crate::app::bindholder::BindHolder) overload

Source

fn try_bind_3( self, super_: impl Into<ProcInst>, time: impl Into<f32>, ) -> ResourceObject

TryBind(crate::app::procinst::ProcInst, f32) overload

Source

fn try_bind_4( self, binder: impl Into<BindHolder>, time: impl Into<f32>, ) -> ResourceObject

TryBind(crate::app::bindholder::BindHolder, f32) overload

Source

fn try_unbind(self) -> ResourceObject

TryUnbind() 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: IResourceObject> IResourceObjectMethods for __T

Available on crate feature app-resourceobject only.