Skip to main content

ILightMethods

Trait ILightMethods 

Source
pub trait ILightMethods: ILight {
Show 93 methods // Provided methods fn get_type(self) -> LightType { ... } fn set_type(self, value: impl Into<LightType>) { ... } fn get_shape(self) -> LightShape { ... } fn set_shape(self, value: impl Into<LightShape>) { ... } fn get_spot_angle(self) -> f32 { ... } fn set_spot_angle(self, value: impl Into<f32>) { ... } fn get_inner_spot_angle(self) -> f32 { ... } fn set_inner_spot_angle(self, value: impl Into<f32>) { ... } fn get_color(self) -> Color { ... } fn set_color(self, value: impl Into<Color>) { ... } fn get_color_temperature(self) -> f32 { ... } fn set_color_temperature(self, value: impl Into<f32>) { ... } fn get_use_color_temperature(self) -> bool { ... } fn set_use_color_temperature(self, value: impl Into<bool>) { ... } fn get_intensity(self) -> f32 { ... } fn set_intensity(self, value: impl Into<f32>) { ... } fn get_bounce_intensity(self) -> f32 { ... } fn set_bounce_intensity(self, value: impl Into<f32>) { ... } fn get_use_bounding_sphere_override(self) -> bool { ... } fn set_use_bounding_sphere_override(self, value: impl Into<bool>) { ... } fn get_bounding_sphere_override(self) -> Vector4 { ... } fn set_bounding_sphere_override(self, value: impl Into<Vector4>) { ... } fn get_use_view_frustum_for_shadow_caster_cull(self) -> bool { ... } fn set_use_view_frustum_for_shadow_caster_cull(self, value: impl Into<bool>) { ... } fn get_shadow_custom_resolution(self) -> i32 { ... } fn set_shadow_custom_resolution(self, value: impl Into<i32>) { ... } fn get_shadow_bias(self) -> f32 { ... } fn set_shadow_bias(self, value: impl Into<f32>) { ... } fn get_shadow_normal_bias(self) -> f32 { ... } fn set_shadow_normal_bias(self, value: impl Into<f32>) { ... } fn get_shadow_near_plane(self) -> f32 { ... } fn set_shadow_near_plane(self, value: impl Into<f32>) { ... } fn get_use_shadow_matrix_override(self) -> bool { ... } fn set_use_shadow_matrix_override(self, value: impl Into<bool>) { ... } fn get_shadow_matrix_override(self) -> Matrix4x4 { ... } fn set_shadow_matrix_override(self, value: impl Into<Matrix4x4>) { ... } fn get_range(self) -> f32 { ... } fn set_range(self, value: impl Into<f32>) { ... } fn get_flare(self) -> Flare { ... } fn set_flare(self, value: impl Into<Flare>) { ... } fn get_baking_output(self) -> LightBakingOutput { ... } fn set_baking_output(self, value: impl Into<LightBakingOutput>) { ... } fn get_culling_mask(self) -> i32 { ... } fn set_culling_mask(self, value: impl Into<i32>) { ... } fn get_rendering_layer_mask(self) -> i32 { ... } fn set_rendering_layer_mask(self, value: impl Into<i32>) { ... } fn get_light_shadow_caster_mode(self) -> LightShadowCasterMode { ... } fn set_light_shadow_caster_mode( self, value: impl Into<LightShadowCasterMode>, ) { ... } fn reset(self) { ... } fn get_shadows(self) -> LightShadows { ... } fn set_shadows(self, value: impl Into<LightShadows>) { ... } fn get_shadow_strength(self) -> f32 { ... } fn set_shadow_strength(self, value: impl Into<f32>) { ... } fn get_shadow_resolution(self) -> LightShadowResolution { ... } fn set_shadow_resolution(self, value: impl Into<LightShadowResolution>) { ... } fn get_shadow_softness(self) -> f32 { ... } fn set_shadow_softness(self, value: impl Into<f32>) { ... } fn get_shadow_softness_fade(self) -> f32 { ... } fn set_shadow_softness_fade(self, value: impl Into<f32>) { ... } fn get_layer_shadow_cull_distances(self) -> Array<f32> { ... } fn set_layer_shadow_cull_distances(self, value: impl Into<Array<f32>>) { ... } fn get_cookie_size(self) -> f32 { ... } fn set_cookie_size(self, value: impl Into<f32>) { ... } fn get_cookie(self) -> Texture { ... } fn set_cookie(self, value: impl Into<Texture>) { ... } fn get_render_mode(self) -> LightRenderMode { ... } fn set_render_mode(self, value: impl Into<LightRenderMode>) { ... } fn get_baked_index(self) -> i32 { ... } fn set_baked_index(self, value: impl Into<i32>) { ... } fn add_command_buffer( self, evt: impl Into<LightEvent>, buffer: impl Into<CommandBuffer>, ) { ... } fn add_command_buffer_2( self, evt: impl Into<LightEvent>, buffer: impl Into<CommandBuffer>, shadow_pass_mask: impl Into<ShadowMapPass>, ) { ... } fn add_command_buffer_async( self, evt: impl Into<LightEvent>, buffer: impl Into<CommandBuffer>, queue_type: impl Into<ComputeQueueType>, ) { ... } fn add_command_buffer_async_2( self, evt: impl Into<LightEvent>, buffer: impl Into<CommandBuffer>, shadow_pass_mask: impl Into<ShadowMapPass>, queue_type: impl Into<ComputeQueueType>, ) { ... } fn remove_command_buffer( self, evt: impl Into<LightEvent>, buffer: impl Into<CommandBuffer>, ) { ... } fn remove_command_buffers(self, evt: impl Into<LightEvent>) { ... } fn remove_all_command_buffers(self) { ... } fn get_command_buffers( self, evt: impl Into<LightEvent>, ) -> Array<CommandBuffer> { ... } fn get_command_buffer_count(self) -> i32 { ... } fn get_shadow_constant_bias(self) -> f32 { ... } fn set_shadow_constant_bias(self, value: impl Into<f32>) { ... } fn get_shadow_object_size_bias(self) -> f32 { ... } fn set_shadow_object_size_bias(self, value: impl Into<f32>) { ... } fn get_attenuate(self) -> bool { ... } fn set_attenuate(self, value: impl Into<bool>) { ... } fn ctor(self) { ... } fn get_color_injected(self) -> Color { ... } fn set_color_injected(self) -> Color { ... } fn get_bounding_sphere_override_injected(self) -> Vector4 { ... } fn set_bounding_sphere_override_injected(self) -> Vector4 { ... } fn get_shadow_matrix_override_injected(self) -> Matrix4x4 { ... } fn set_shadow_matrix_override_injected(self) -> Matrix4x4 { ... } fn get_baking_output_injected(self) -> LightBakingOutput { ... } fn set_baking_output_injected(self) -> LightBakingOutput { ... }
}

Provided Methods§

Source

fn get_type(self) -> LightType

get_type() overload

Source

fn set_type(self, value: impl Into<LightType>)

set_type(crate::unity_engine::lighttype::LightType) overload

Source

fn get_shape(self) -> LightShape

get_shape() overload

Source

fn set_shape(self, value: impl Into<LightShape>)

set_shape(crate::unity_engine::lightshape::LightShape) overload

Source

fn get_spot_angle(self) -> f32

get_spotAngle() overload

Source

fn set_spot_angle(self, value: impl Into<f32>)

set_spotAngle(f32) overload

Source

fn get_inner_spot_angle(self) -> f32

get_innerSpotAngle() overload

Source

fn set_inner_spot_angle(self, value: impl Into<f32>)

set_innerSpotAngle(f32) overload

Source

fn get_color(self) -> Color

get_color() overload

Source

fn set_color(self, value: impl Into<Color>)

set_color(crate::unity_engine::color::Color) overload

Source

fn get_color_temperature(self) -> f32

get_colorTemperature() overload

Source

fn set_color_temperature(self, value: impl Into<f32>)

set_colorTemperature(f32) overload

Source

fn get_use_color_temperature(self) -> bool

get_useColorTemperature() overload

Source

fn set_use_color_temperature(self, value: impl Into<bool>)

set_useColorTemperature(bool) overload

Source

fn get_intensity(self) -> f32

get_intensity() overload

Source

fn set_intensity(self, value: impl Into<f32>)

set_intensity(f32) overload

Source

fn get_bounce_intensity(self) -> f32

get_bounceIntensity() overload

Source

fn set_bounce_intensity(self, value: impl Into<f32>)

set_bounceIntensity(f32) overload

Source

fn get_use_bounding_sphere_override(self) -> bool

get_useBoundingSphereOverride() overload

Source

fn set_use_bounding_sphere_override(self, value: impl Into<bool>)

set_useBoundingSphereOverride(bool) overload

Source

fn get_bounding_sphere_override(self) -> Vector4

get_boundingSphereOverride() overload

Source

fn set_bounding_sphere_override(self, value: impl Into<Vector4>)

set_boundingSphereOverride(crate::unity_engine::vector4::Vector4) overload

Source

fn get_use_view_frustum_for_shadow_caster_cull(self) -> bool

get_useViewFrustumForShadowCasterCull() overload

Source

fn set_use_view_frustum_for_shadow_caster_cull(self, value: impl Into<bool>)

set_useViewFrustumForShadowCasterCull(bool) overload

Source

fn get_shadow_custom_resolution(self) -> i32

get_shadowCustomResolution() overload

Source

fn set_shadow_custom_resolution(self, value: impl Into<i32>)

set_shadowCustomResolution(i32) overload

Source

fn get_shadow_bias(self) -> f32

get_shadowBias() overload

Source

fn set_shadow_bias(self, value: impl Into<f32>)

set_shadowBias(f32) overload

Source

fn get_shadow_normal_bias(self) -> f32

get_shadowNormalBias() overload

Source

fn set_shadow_normal_bias(self, value: impl Into<f32>)

set_shadowNormalBias(f32) overload

Source

fn get_shadow_near_plane(self) -> f32

get_shadowNearPlane() overload

Source

fn set_shadow_near_plane(self, value: impl Into<f32>)

set_shadowNearPlane(f32) overload

Source

fn get_use_shadow_matrix_override(self) -> bool

get_useShadowMatrixOverride() overload

Source

fn set_use_shadow_matrix_override(self, value: impl Into<bool>)

set_useShadowMatrixOverride(bool) overload

Source

fn get_shadow_matrix_override(self) -> Matrix4x4

get_shadowMatrixOverride() overload

Source

fn set_shadow_matrix_override(self, value: impl Into<Matrix4x4>)

set_shadowMatrixOverride(crate::unity_engine::matrix4x4::Matrix4x4) overload

Source

fn get_range(self) -> f32

get_range() overload

Source

fn set_range(self, value: impl Into<f32>)

set_range(f32) overload

Source

fn get_flare(self) -> Flare

get_flare() overload

Source

fn set_flare(self, value: impl Into<Flare>)

set_flare(crate::unity_engine::flare::Flare) overload

Source

fn get_baking_output(self) -> LightBakingOutput

get_bakingOutput() overload

Source

fn set_baking_output(self, value: impl Into<LightBakingOutput>)

set_bakingOutput(crate::unity_engine::lightbakingoutput::LightBakingOutput) overload

Source

fn get_culling_mask(self) -> i32

get_cullingMask() overload

Source

fn set_culling_mask(self, value: impl Into<i32>)

set_cullingMask(i32) overload

Source

fn get_rendering_layer_mask(self) -> i32

get_renderingLayerMask() overload

Source

fn set_rendering_layer_mask(self, value: impl Into<i32>)

set_renderingLayerMask(i32) overload

Source

fn get_light_shadow_caster_mode(self) -> LightShadowCasterMode

get_lightShadowCasterMode() overload

Source

fn set_light_shadow_caster_mode(self, value: impl Into<LightShadowCasterMode>)

set_lightShadowCasterMode(crate::unity_engine::lightshadowcastermode::LightShadowCasterMode) overload

Source

fn reset(self)

Reset() overload

Source

fn get_shadows(self) -> LightShadows

get_shadows() overload

Source

fn set_shadows(self, value: impl Into<LightShadows>)

set_shadows(crate::unity_engine::lightshadows::LightShadows) overload

Source

fn get_shadow_strength(self) -> f32

get_shadowStrength() overload

Source

fn set_shadow_strength(self, value: impl Into<f32>)

set_shadowStrength(f32) overload

Source

fn get_shadow_resolution(self) -> LightShadowResolution

get_shadowResolution() overload

Source

fn set_shadow_resolution(self, value: impl Into<LightShadowResolution>)

set_shadowResolution(crate::unity_engine::rendering::lightshadowresolution::LightShadowResolution) overload

Source

fn get_shadow_softness(self) -> f32

get_shadowSoftness() overload

Source

fn set_shadow_softness(self, value: impl Into<f32>)

set_shadowSoftness(f32) overload

Source

fn get_shadow_softness_fade(self) -> f32

get_shadowSoftnessFade() overload

Source

fn set_shadow_softness_fade(self, value: impl Into<f32>)

set_shadowSoftnessFade(f32) overload

Source

fn get_layer_shadow_cull_distances(self) -> Array<f32>

get_layerShadowCullDistances() overload

Source

fn set_layer_shadow_cull_distances(self, value: impl Into<Array<f32>>)

set_layerShadowCullDistances(::unity::Array<f32>) overload

get_cookieSize() overload

set_cookieSize(f32) overload

get_cookie() overload

set_cookie(crate::unity_engine::texture::Texture) overload

Source

fn get_render_mode(self) -> LightRenderMode

get_renderMode() overload

Source

fn set_render_mode(self, value: impl Into<LightRenderMode>)

set_renderMode(crate::unity_engine::lightrendermode::LightRenderMode) overload

Source

fn get_baked_index(self) -> i32

get_bakedIndex() overload

Source

fn set_baked_index(self, value: impl Into<i32>)

set_bakedIndex(i32) overload

Source

fn add_command_buffer( self, evt: impl Into<LightEvent>, buffer: impl Into<CommandBuffer>, )

AddCommandBuffer(crate::unity_engine::rendering::lightevent::LightEvent, crate::unity_engine::rendering::commandbuffer::CommandBuffer) overload

Source

fn add_command_buffer_2( self, evt: impl Into<LightEvent>, buffer: impl Into<CommandBuffer>, shadow_pass_mask: impl Into<ShadowMapPass>, )

AddCommandBuffer(crate::unity_engine::rendering::lightevent::LightEvent, crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendering::shadowmappass::ShadowMapPass) overload

Source

fn add_command_buffer_async( self, evt: impl Into<LightEvent>, buffer: impl Into<CommandBuffer>, queue_type: impl Into<ComputeQueueType>, )

AddCommandBufferAsync(crate::unity_engine::rendering::lightevent::LightEvent, crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendering::computequeuetype::ComputeQueueType) overload

Source

fn add_command_buffer_async_2( self, evt: impl Into<LightEvent>, buffer: impl Into<CommandBuffer>, shadow_pass_mask: impl Into<ShadowMapPass>, queue_type: impl Into<ComputeQueueType>, )

AddCommandBufferAsync(crate::unity_engine::rendering::lightevent::LightEvent, crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendering::shadowmappass::ShadowMapPass, crate::unity_engine::rendering::computequeuetype::ComputeQueueType) overload

Source

fn remove_command_buffer( self, evt: impl Into<LightEvent>, buffer: impl Into<CommandBuffer>, )

RemoveCommandBuffer(crate::unity_engine::rendering::lightevent::LightEvent, crate::unity_engine::rendering::commandbuffer::CommandBuffer) overload

Source

fn remove_command_buffers(self, evt: impl Into<LightEvent>)

RemoveCommandBuffers(crate::unity_engine::rendering::lightevent::LightEvent) overload

Source

fn remove_all_command_buffers(self)

RemoveAllCommandBuffers() overload

Source

fn get_command_buffers(self, evt: impl Into<LightEvent>) -> Array<CommandBuffer>

GetCommandBuffers(crate::unity_engine::rendering::lightevent::LightEvent) overload

Source

fn get_command_buffer_count(self) -> i32

get_commandBufferCount() overload

Source

fn get_shadow_constant_bias(self) -> f32

get_shadowConstantBias() overload

Source

fn set_shadow_constant_bias(self, value: impl Into<f32>)

set_shadowConstantBias(f32) overload

Source

fn get_shadow_object_size_bias(self) -> f32

get_shadowObjectSizeBias() overload

Source

fn set_shadow_object_size_bias(self, value: impl Into<f32>)

set_shadowObjectSizeBias(f32) overload

Source

fn get_attenuate(self) -> bool

get_attenuate() overload

Source

fn set_attenuate(self, value: impl Into<bool>)

set_attenuate(bool) overload

Source

fn ctor(self)

.ctor() overload

Source

fn get_color_injected(self) -> Color

get_color_Injected(*mutcrate::unity_engine::color::Color) overload

Source

fn set_color_injected(self) -> Color

set_color_Injected(*mutcrate::unity_engine::color::Color) overload

Source

fn get_bounding_sphere_override_injected(self) -> Vector4

get_boundingSphereOverride_Injected(*mutcrate::unity_engine::vector4::Vector4) overload

Source

fn set_bounding_sphere_override_injected(self) -> Vector4

set_boundingSphereOverride_Injected(*mutcrate::unity_engine::vector4::Vector4) overload

Source

fn get_shadow_matrix_override_injected(self) -> Matrix4x4

get_shadowMatrixOverride_Injected(*mutcrate::unity_engine::matrix4x4::Matrix4x4) overload

Source

fn set_shadow_matrix_override_injected(self) -> Matrix4x4

set_shadowMatrixOverride_Injected(*mutcrate::unity_engine::matrix4x4::Matrix4x4) overload

Source

fn get_baking_output_injected(self) -> LightBakingOutput

get_bakingOutput_Injected(*mutcrate::unity_engine::lightbakingoutput::LightBakingOutput) overload

Source

fn set_baking_output_injected(self) -> LightBakingOutput

set_bakingOutput_Injected(*mutcrate::unity_engine::lightbakingoutput::LightBakingOutput) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: ILight> ILightMethods for __T

Available on crate feature unity_engine-light only.