#[repr(C)]pub struct Color {
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}Expand description
Fields§
§r: f32§g: f32§b: f32§a: f32Implementations§
Source§impl Color
impl Color
Sourcepub fn op_addition(a: impl Into<Color>, b: impl Into<Color>) -> Color
pub fn op_addition(a: impl Into<Color>, b: impl Into<Color>) -> Color
op_Addition(crate::unity_engine::color::Color, crate::unity_engine::color::Color) overload
Sourcepub fn op_multiply(a: impl Into<Color>, b: impl Into<Color>) -> Color
pub fn op_multiply(a: impl Into<Color>, b: impl Into<Color>) -> Color
op_Multiply(crate::unity_engine::color::Color, crate::unity_engine::color::Color) overload
Sourcepub fn op_multiply_2(a: impl Into<Color>, b: impl Into<f32>) -> Color
pub fn op_multiply_2(a: impl Into<Color>, b: impl Into<f32>) -> Color
op_Multiply(crate::unity_engine::color::Color, f32) overload
Sourcepub fn op_multiply_3(b: impl Into<f32>, a: impl Into<Color>) -> Color
pub fn op_multiply_3(b: impl Into<f32>, a: impl Into<Color>) -> Color
op_Multiply(f32, crate::unity_engine::color::Color) overload
Sourcepub fn op_equality(lhs: impl Into<Color>, rhs: impl Into<Color>) -> bool
pub fn op_equality(lhs: impl Into<Color>, rhs: impl Into<Color>) -> bool
op_Equality(crate::unity_engine::color::Color, crate::unity_engine::color::Color) overload
Sourcepub fn op_inequality(lhs: impl Into<Color>, rhs: impl Into<Color>) -> bool
pub fn op_inequality(lhs: impl Into<Color>, rhs: impl Into<Color>) -> bool
op_Inequality(crate::unity_engine::color::Color, crate::unity_engine::color::Color) overload
Sourcepub fn lerp(
a: impl Into<Color>,
b: impl Into<Color>,
t: impl Into<f32>,
) -> Color
pub fn lerp( a: impl Into<Color>, b: impl Into<Color>, t: impl Into<f32>, ) -> Color
Lerp(crate::unity_engine::color::Color, crate::unity_engine::color::Color, f32) overload
Sourcepub fn get_yellow() -> Color
pub fn get_yellow() -> Color
get_yellow() overload
Sourcepub fn get_magenta() -> Color
pub fn get_magenta() -> Color
get_magenta() overload
Sourcepub fn op_implicit(c: impl Into<Color>) -> Vector4
pub fn op_implicit(c: impl Into<Color>) -> Vector4
op_Implicit(crate::unity_engine::color::Color) overload
Sourcepub fn op_implicit_2(v: impl Into<Vector4>) -> Color
pub fn op_implicit_2(v: impl Into<Vector4>) -> Color
op_Implicit(crate::unity_engine::vector4::Vector4) overload
Source§impl Color
impl Color
Sourcepub fn ctor(
&mut self,
r: impl Into<f32>,
g: impl Into<f32>,
b: impl Into<f32>,
a: impl Into<f32>,
)
pub fn ctor( &mut self, r: impl Into<f32>, g: impl Into<f32>, b: impl Into<f32>, a: impl Into<f32>, )
.ctor(f32, f32, f32, f32) overload
Sourcepub fn ctor_2(
&mut self,
r: impl Into<f32>,
g: impl Into<f32>,
b: impl Into<f32>,
)
pub fn ctor_2( &mut self, r: impl Into<f32>, g: impl Into<f32>, b: impl Into<f32>, )
.ctor(f32, f32, f32) overload
Sourcepub fn to_string(&mut self) -> Il2CppString
pub fn to_string(&mut self) -> Il2CppString
ToString() overload
Sourcepub fn get_hash_code(&mut self) -> i32
pub fn get_hash_code(&mut self) -> i32
GetHashCode() overload
Sourcepub fn equals(&mut self, other: impl Into<Object>) -> bool
pub fn equals(&mut self, other: impl Into<Object>) -> bool
Equals(crate::system::object::Object) overload
Sourcepub fn equals_2(&mut self, other: impl Into<Color>) -> bool
pub fn equals_2(&mut self, other: impl Into<Color>) -> bool
Equals(crate::unity_engine::color::Color) overload
Sourcepub fn rgb_multiplied(&mut self, multiplier: impl Into<f32>) -> Color
pub fn rgb_multiplied(&mut self, multiplier: impl Into<f32>) -> Color
RGBMultiplied(f32) overload
Sourcepub fn get_linear(&mut self) -> Color
pub fn get_linear(&mut self) -> Color
get_linear() overload
Sourcepub fn get_max_color_component(&mut self) -> f32
pub fn get_max_color_component(&mut self) -> f32
get_maxColorComponent() overload
Source§impl Color
impl Color
pub fn ctor_method_info() -> &'static MethodInfo
pub fn ctor_2_method_info() -> &'static MethodInfo
pub fn to_string_method_info() -> &'static MethodInfo
pub fn get_hash_code_method_info() -> &'static MethodInfo
pub fn equals_method_info() -> &'static MethodInfo
pub fn equals_2_method_info() -> &'static MethodInfo
pub fn op_addition_method_info() -> &'static MethodInfo
pub fn op_multiply_method_info() -> &'static MethodInfo
pub fn op_multiply_2_method_info() -> &'static MethodInfo
pub fn op_multiply_3_method_info() -> &'static MethodInfo
pub fn op_equality_method_info() -> &'static MethodInfo
pub fn op_inequality_method_info() -> &'static MethodInfo
pub fn lerp_method_info() -> &'static MethodInfo
pub fn rgb_multiplied_method_info() -> &'static MethodInfo
pub fn get_red_method_info() -> &'static MethodInfo
pub fn get_green_method_info() -> &'static MethodInfo
pub fn get_blue_method_info() -> &'static MethodInfo
pub fn get_white_method_info() -> &'static MethodInfo
pub fn get_black_method_info() -> &'static MethodInfo
pub fn get_yellow_method_info() -> &'static MethodInfo
pub fn get_cyan_method_info() -> &'static MethodInfo
pub fn get_magenta_method_info() -> &'static MethodInfo
pub fn get_gray_method_info() -> &'static MethodInfo
pub fn get_grey_method_info() -> &'static MethodInfo
pub fn get_clear_method_info() -> &'static MethodInfo
pub fn get_linear_method_info() -> &'static MethodInfo
pub fn get_gamma_method_info() -> &'static MethodInfo
pub fn get_max_color_component_method_info() -> &'static MethodInfo
pub fn op_implicit_method_info() -> &'static MethodInfo
pub fn op_implicit_2_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for Color
impl ClassIdentity for Color
Source§impl IDebugUI_Field_1<Color> for DebugUI_ColorField
impl IDebugUI_Field_1<Color> for DebugUI_ColorField
fn on_value_changed(self) -> Action_2<DebugUI_Field_1<T0>, T0>
fn set_on_value_changed(self, value: Action_2<DebugUI_Field_1<T0>, T0>)
Source§impl IInterpolator_1<Color> for InterpolatorColor
impl IInterpolator_1<Color> for InterpolatorColor
Source§impl IUnityEvent_1<Color> for ColorTween_ColorTweenCallback
impl IUnityEvent_1<Color> for ColorTween_ColorTweenCallback
fn m_invoke_array(self) -> Array<Object>
fn set_m_invoke_array(self, value: Array<Object>)
Source§impl IUnityEvent_1<Color> for ColorTween_ColorTweenCallback_2
impl IUnityEvent_1<Color> for ColorTween_ColorTweenCallback_2
fn m_invoke_array(self) -> Array<Object>
fn set_m_invoke_array(self, value: Array<Object>)
Source§impl IVolumeParameter_1<Color> for ColorParameter
impl IVolumeParameter_1<Color> for ColorParameter
impl Copy for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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
§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)
clone_to_uninit)