#[repr(C)]pub struct ColorTween_2 {
pub m_target: ColorTween_ColorTweenCallback_2,
pub m_start_color: Color,
pub m_target_color: Color,
pub m_tween_mode: ColorTween_ColorTweenMode_2,
pub m_duration: f32,
pub m_ignore_time_scale: bool,
}Expand description
Fields§
§m_target: ColorTween_ColorTweenCallback_2§m_start_color: Color§m_target_color: Color§m_tween_mode: ColorTween_ColorTweenMode_2§m_duration: f32§m_ignore_time_scale: boolImplementations§
Source§impl ColorTween_2
impl ColorTween_2
Sourcepub fn get_start_color(&mut self) -> Color
pub fn get_start_color(&mut self) -> Color
get_startColor() overload
Sourcepub fn set_start_color(&mut self, value: impl Into<Color>)
pub fn set_start_color(&mut self, value: impl Into<Color>)
set_startColor(crate::unity_engine::color::Color) overload
Sourcepub fn get_target_color(&mut self) -> Color
pub fn get_target_color(&mut self) -> Color
get_targetColor() overload
Sourcepub fn set_target_color(&mut self, value: impl Into<Color>)
pub fn set_target_color(&mut self, value: impl Into<Color>)
set_targetColor(crate::unity_engine::color::Color) overload
Sourcepub fn get_tween_mode(&mut self) -> ColorTween_ColorTweenMode_2
pub fn get_tween_mode(&mut self) -> ColorTween_ColorTweenMode_2
get_tweenMode() overload
Sourcepub fn set_tween_mode(&mut self, value: impl Into<ColorTween_ColorTweenMode_2>)
pub fn set_tween_mode(&mut self, value: impl Into<ColorTween_ColorTweenMode_2>)
set_tweenMode(crate::tm_pro::colortween_2::ColorTween_ColorTweenMode_2) 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<Color>>,
)
pub fn add_on_changed_callback( &mut self, callback: impl Into<UnityAction_1<Color>>, )
AddOnChangedCallback(crate::unity_engine::events::unityaction_1::UnityAction_1<crate::unity_engine::color::Color>) 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 ColorTween_2
impl ColorTween_2
pub fn get_start_color_method_info() -> &'static MethodInfo
pub fn set_start_color_method_info() -> &'static MethodInfo
pub fn get_target_color_method_info() -> &'static MethodInfo
pub fn set_target_color_method_info() -> &'static MethodInfo
pub fn get_tween_mode_method_info() -> &'static MethodInfo
pub fn set_tween_mode_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 ColorTween_2
impl ClassIdentity for ColorTween_2
Source§impl Clone for ColorTween_2
impl Clone for ColorTween_2
Source§fn clone(&self) -> ColorTween_2
fn clone(&self) -> ColorTween_2
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 ColorTween_2
Auto Trait Implementations§
impl Freeze for ColorTween_2
impl RefUnwindSafe for ColorTween_2
impl !Send for ColorTween_2
impl !Sync for ColorTween_2
impl Unpin for ColorTween_2
impl UnwindSafe for ColorTween_2
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)