#[repr(C)]pub struct VisibleLight {
pub m_light_type: LightType,
pub m_final_color: Color,
pub m_screen_rect: Rect,
pub m_local_to_world_matrix: Matrix4x4,
pub m_range: f32,
pub m_spot_angle: f32,
pub m_instance_id: i32,
pub m_flags: VisibleLightFlags,
}Expand description
Fields§
§m_light_type: LightType§m_final_color: Color§m_screen_rect: Rect§m_local_to_world_matrix: Matrix4x4§m_range: f32§m_spot_angle: f32§m_instance_id: i32§m_flags: VisibleLightFlagsImplementations§
Source§impl VisibleLight
impl VisibleLight
Sourcepub fn get_light_type(&mut self) -> LightType
pub fn get_light_type(&mut self) -> LightType
get_lightType() overload
Sourcepub fn get_final_color(&mut self) -> Color
pub fn get_final_color(&mut self) -> Color
get_finalColor() overload
Sourcepub fn get_local_to_world_matrix(&mut self) -> Matrix4x4
pub fn get_local_to_world_matrix(&mut self) -> Matrix4x4
get_localToWorldMatrix() overload
Sourcepub fn get_spot_angle(&mut self) -> f32
pub fn get_spot_angle(&mut self) -> f32
get_spotAngle() overload
Sourcepub fn equals(&mut self, other: impl Into<VisibleLight>) -> bool
pub fn equals(&mut self, other: impl Into<VisibleLight>) -> bool
Equals(crate::unity_engine::rendering::visiblelight::VisibleLight) overload
Sourcepub fn equals_2(&mut self, obj: impl Into<Object>) -> bool
pub fn equals_2(&mut self, obj: impl Into<Object>) -> bool
Equals(crate::system::object::Object) overload
Sourcepub fn get_hash_code(&mut self) -> i32
pub fn get_hash_code(&mut self) -> i32
GetHashCode() overload
Source§impl VisibleLight
impl VisibleLight
pub fn get_light_method_info() -> &'static MethodInfo
pub fn get_light_type_method_info() -> &'static MethodInfo
pub fn get_final_color_method_info() -> &'static MethodInfo
pub fn get_local_to_world_matrix_method_info() -> &'static MethodInfo
pub fn get_range_method_info() -> &'static MethodInfo
pub fn get_spot_angle_method_info() -> &'static MethodInfo
pub fn equals_method_info() -> &'static MethodInfo
pub fn equals_2_method_info() -> &'static MethodInfo
pub fn get_hash_code_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for VisibleLight
impl ClassIdentity for VisibleLight
Source§impl Clone for VisibleLight
impl Clone for VisibleLight
Source§fn clone(&self) -> VisibleLight
fn clone(&self) -> VisibleLight
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 VisibleLight
Auto Trait Implementations§
impl Freeze for VisibleLight
impl RefUnwindSafe for VisibleLight
impl Send for VisibleLight
impl Sync for VisibleLight
impl Unpin for VisibleLight
impl UnwindSafe for VisibleLight
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)