#[repr(C)]pub struct FloatTween {
pub m_target: FloatTween_FloatTweenCallback,
pub m_start_value: f32,
pub m_target_value: f32,
pub m_duration: f32,
pub m_ignore_time_scale: bool,
}Expand description
Fields§
§m_target: FloatTween_FloatTweenCallback§m_start_value: f32§m_target_value: f32§m_duration: f32§m_ignore_time_scale: boolImplementations§
Source§impl FloatTween
impl FloatTween
Sourcepub fn get_start_value(&mut self) -> f32
pub fn get_start_value(&mut self) -> f32
get_startValue() overload
Sourcepub fn set_start_value(&mut self, value: impl Into<f32>)
pub fn set_start_value(&mut self, value: impl Into<f32>)
set_startValue(f32) overload
Sourcepub fn get_target_value(&mut self) -> f32
pub fn get_target_value(&mut self) -> f32
get_targetValue() overload
Sourcepub fn set_target_value(&mut self, value: impl Into<f32>)
pub fn set_target_value(&mut self, value: impl Into<f32>)
set_targetValue(f32) overload
Sourcepub fn get_duration(&mut self) -> f32
pub fn get_duration(&mut self) -> f32
get_duration() overload
Sourcepub fn set_duration(&mut self, value: impl Into<f32>)
pub fn set_duration(&mut self, value: impl Into<f32>)
set_duration(f32) overload
Sourcepub fn get_ignore_time_scale(&mut self) -> bool
pub fn get_ignore_time_scale(&mut self) -> bool
get_ignoreTimeScale() overload
Sourcepub fn set_ignore_time_scale(&mut self, value: impl Into<bool>)
pub fn set_ignore_time_scale(&mut self, value: impl Into<bool>)
set_ignoreTimeScale(bool) overload
Sourcepub fn tween_value(&mut self, float_percentage: impl Into<f32>)
pub fn tween_value(&mut self, float_percentage: impl Into<f32>)
TweenValue(f32) overload
Sourcepub fn add_on_changed_callback(
&mut self,
callback: impl Into<UnityAction_1<f32>>,
)
pub fn add_on_changed_callback( &mut self, callback: impl Into<UnityAction_1<f32>>, )
AddOnChangedCallback(crate::unity_engine::events::unityaction_1::UnityAction_1<f32>) overload
Sourcepub fn get_ignore_timescale(&mut self) -> bool
pub fn get_ignore_timescale(&mut self) -> bool
GetIgnoreTimescale() overload
Sourcepub fn valid_target(&mut self) -> bool
pub fn valid_target(&mut self) -> bool
ValidTarget() overload
Source§impl FloatTween
impl FloatTween
pub fn get_start_value_method_info() -> &'static MethodInfo
pub fn set_start_value_method_info() -> &'static MethodInfo
pub fn get_target_value_method_info() -> &'static MethodInfo
pub fn set_target_value_method_info() -> &'static MethodInfo
pub fn get_duration_method_info() -> &'static MethodInfo
pub fn set_duration_method_info() -> &'static MethodInfo
pub fn get_ignore_time_scale_method_info() -> &'static MethodInfo
pub fn set_ignore_time_scale_method_info() -> &'static MethodInfo
pub fn tween_value_method_info() -> &'static MethodInfo
pub fn add_on_changed_callback_method_info() -> &'static MethodInfo
pub fn get_ignore_timescale_method_info() -> &'static MethodInfo
pub fn valid_target_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for FloatTween
impl ClassIdentity for FloatTween
Source§impl Clone for FloatTween
impl Clone for FloatTween
Source§fn clone(&self) -> FloatTween
fn clone(&self) -> FloatTween
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FloatTween
Auto Trait Implementations§
impl Freeze for FloatTween
impl RefUnwindSafe for FloatTween
impl !Send for FloatTween
impl !Sync for FloatTween
impl Unpin for FloatTween
impl UnwindSafe for FloatTween
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)