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§
Sourcefn on_destroy(self)
fn on_destroy(self)
OnDestroy() overload
Sourcefn is_terminated(self) -> bool
fn is_terminated(self) -> bool
IsTerminated() overload
fn load_async<M0: IlType + Copy + ClassIdentity>( self, path: impl Into<Il2CppString>, )
Sourcefn set_start_callback(
self,
callback: impl Into<ResourceObject_Callback>,
) -> ResourceObject
fn set_start_callback( self, callback: impl Into<ResourceObject_Callback>, ) -> ResourceObject
SetStartCallback(crate::app::resourceobject::ResourceObject_Callback) overload
Sourcefn set_tick_callback(
self,
callback: impl Into<ResourceObject_Callback>,
) -> ResourceObject
fn set_tick_callback( self, callback: impl Into<ResourceObject_Callback>, ) -> ResourceObject
SetTickCallback(crate::app::resourceobject::ResourceObject_Callback) overload
Sourcefn set_end_callback(
self,
callback: impl Into<ResourceObject_Callback>,
) -> ResourceObject
fn set_end_callback( self, callback: impl Into<ResourceObject_Callback>, ) -> ResourceObject
SetEndCallback(crate::app::resourceobject::ResourceObject_Callback) overload
Sourcefn set_coroutine(
self,
coroutine: impl Into<ResourceObject_Coroutine>,
) -> ResourceObject
fn set_coroutine( self, coroutine: impl Into<ResourceObject_Coroutine>, ) -> ResourceObject
SetCoroutine(crate::app::resourceobject::ResourceObject_Coroutine) overload
Sourcefn set_position(self, position: impl Into<Vector3>) -> ResourceObject
fn set_position(self, position: impl Into<Vector3>) -> ResourceObject
SetPosition(crate::unity_engine::vector3::Vector3) overload
Sourcefn set_position_2(
self,
x: impl Into<f32>,
y: impl Into<f32>,
z: impl Into<f32>,
) -> ResourceObject
fn set_position_2( self, x: impl Into<f32>, y: impl Into<f32>, z: impl Into<f32>, ) -> ResourceObject
SetPosition(f32, f32, f32) overload
Sourcefn set_rotation(self, rotation: impl Into<Quaternion>) -> ResourceObject
fn set_rotation(self, rotation: impl Into<Quaternion>) -> ResourceObject
SetRotation(crate::unity_engine::quaternion::Quaternion) overload
Sourcefn set_rotation_2(
self,
x: impl Into<f32>,
y: impl Into<f32>,
z: impl Into<f32>,
) -> ResourceObject
fn set_rotation_2( self, x: impl Into<f32>, y: impl Into<f32>, z: impl Into<f32>, ) -> ResourceObject
SetRotation(f32, f32, f32) overload
Sourcefn set_scale(self, scale: impl Into<Vector3>) -> ResourceObject
fn set_scale(self, scale: impl Into<Vector3>) -> ResourceObject
SetScale(crate::unity_engine::vector3::Vector3) overload
Sourcefn set_scale_2(self, scale: impl Into<f32>) -> ResourceObject
fn set_scale_2(self, scale: impl Into<f32>) -> ResourceObject
SetScale(f32) overload
Sourcefn set_scale_3(
self,
x: impl Into<f32>,
y: impl Into<f32>,
z: impl Into<f32>,
) -> ResourceObject
fn set_scale_3( self, x: impl Into<f32>, y: impl Into<f32>, z: impl Into<f32>, ) -> ResourceObject
SetScale(f32, f32, f32) overload
Sourcefn set_sound(self, sound_label: impl Into<Il2CppString>) -> ResourceObject
fn set_sound(self, sound_label: impl Into<Il2CppString>) -> ResourceObject
SetSound(::unity::Il2CppString) overload
Sourcefn set_endless(self, enable: impl Into<bool>) -> ResourceObject
fn set_endless(self, enable: impl Into<bool>) -> ResourceObject
SetEndless(bool) overload
Sourcefn set_can_skip(self, enable: impl Into<bool>) -> ResourceObject
fn set_can_skip(self, enable: impl Into<bool>) -> ResourceObject
SetCanSkip(bool) overload
Sourcefn set_life(self, time: impl Into<f32>) -> ResourceObject
fn set_life(self, time: impl Into<f32>) -> ResourceObject
SetLife(f32) overload
Sourcefn is_endless(self) -> bool
fn is_endless(self) -> bool
IsEndless() overload
Sourcefn set_delay_time(self, time: impl Into<f32>) -> ResourceObject
fn set_delay_time(self, time: impl Into<f32>) -> ResourceObject
SetDelayTime(f32) overload
Sourcefn try_start_callback(self) -> ResourceObject
fn try_start_callback(self) -> ResourceObject
TryStartCallback() overload
Sourcefn try_end_callback(self) -> ResourceObject
fn try_end_callback(self) -> ResourceObject
TryEndCallback() overload
Sourcefn try_bind(self, super_: impl Into<ProcInst>) -> ResourceObject
fn try_bind(self, super_: impl Into<ProcInst>) -> ResourceObject
TryBind(crate::app::procinst::ProcInst) overload
Sourcefn try_bind_2(self, binder: impl Into<BindHolder>) -> ResourceObject
fn try_bind_2(self, binder: impl Into<BindHolder>) -> ResourceObject
TryBind(crate::app::bindholder::BindHolder) overload
Sourcefn try_bind_3(
self,
super_: impl Into<ProcInst>,
time: impl Into<f32>,
) -> ResourceObject
fn try_bind_3( self, super_: impl Into<ProcInst>, time: impl Into<f32>, ) -> ResourceObject
TryBind(crate::app::procinst::ProcInst, f32) overload
Sourcefn try_bind_4(
self,
binder: impl Into<BindHolder>,
time: impl Into<f32>,
) -> ResourceObject
fn try_bind_4( self, binder: impl Into<BindHolder>, time: impl Into<f32>, ) -> ResourceObject
TryBind(crate::app::bindholder::BindHolder, f32) overload
Sourcefn try_unbind(self) -> ResourceObject
fn try_unbind(self) -> ResourceObject
TryUnbind() 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: IResourceObject> IResourceObjectMethods for __T
app-resourceobject only.