#[repr(C)]pub struct LinearColor {
pub m_red: f32,
pub m_green: f32,
pub m_blue: f32,
pub m_intensity: f32,
}Expand description
Fields§
§m_red: f32§m_green: f32§m_blue: f32§m_intensity: f32Implementations§
Source§impl LinearColor
impl LinearColor
Sourcepub fn convert(
color: impl Into<Color>,
intensity: impl Into<f32>,
) -> LinearColor
pub fn convert( color: impl Into<Color>, intensity: impl Into<f32>, ) -> LinearColor
Convert(crate::unity_engine::color::Color, f32) overload
Sourcepub fn black() -> LinearColor
pub fn black() -> LinearColor
Black() overload
Source§impl LinearColor
impl LinearColor
Source§impl LinearColor
impl LinearColor
pub fn get_red_method_info() -> &'static MethodInfo
pub fn set_red_method_info() -> &'static MethodInfo
pub fn get_green_method_info() -> &'static MethodInfo
pub fn set_green_method_info() -> &'static MethodInfo
pub fn get_blue_method_info() -> &'static MethodInfo
pub fn set_blue_method_info() -> &'static MethodInfo
pub fn convert_method_info() -> &'static MethodInfo
pub fn black_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for LinearColor
impl ClassIdentity for LinearColor
Source§impl Clone for LinearColor
impl Clone for LinearColor
Source§fn clone(&self) -> LinearColor
fn clone(&self) -> LinearColor
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 LinearColor
Auto Trait Implementations§
impl Freeze for LinearColor
impl RefUnwindSafe for LinearColor
impl Send for LinearColor
impl Sync for LinearColor
impl Unpin for LinearColor
impl UnwindSafe for LinearColor
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)