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§
Sourcefn set_type(self, value: impl Into<LightType>)
fn set_type(self, value: impl Into<LightType>)
set_type(crate::unity_engine::lighttype::LightType) overload
Sourcefn get_shape(self) -> LightShape
fn get_shape(self) -> LightShape
get_shape() overload
Sourcefn set_shape(self, value: impl Into<LightShape>)
fn set_shape(self, value: impl Into<LightShape>)
set_shape(crate::unity_engine::lightshape::LightShape) overload
Sourcefn get_spot_angle(self) -> f32
fn get_spot_angle(self) -> f32
get_spotAngle() overload
Sourcefn set_spot_angle(self, value: impl Into<f32>)
fn set_spot_angle(self, value: impl Into<f32>)
set_spotAngle(f32) overload
Sourcefn get_inner_spot_angle(self) -> f32
fn get_inner_spot_angle(self) -> f32
get_innerSpotAngle() overload
Sourcefn set_inner_spot_angle(self, value: impl Into<f32>)
fn set_inner_spot_angle(self, value: impl Into<f32>)
set_innerSpotAngle(f32) overload
Sourcefn set_color(self, value: impl Into<Color>)
fn set_color(self, value: impl Into<Color>)
set_color(crate::unity_engine::color::Color) overload
Sourcefn get_color_temperature(self) -> f32
fn get_color_temperature(self) -> f32
get_colorTemperature() overload
Sourcefn set_color_temperature(self, value: impl Into<f32>)
fn set_color_temperature(self, value: impl Into<f32>)
set_colorTemperature(f32) overload
Sourcefn get_use_color_temperature(self) -> bool
fn get_use_color_temperature(self) -> bool
get_useColorTemperature() overload
Sourcefn set_use_color_temperature(self, value: impl Into<bool>)
fn set_use_color_temperature(self, value: impl Into<bool>)
set_useColorTemperature(bool) overload
Sourcefn get_intensity(self) -> f32
fn get_intensity(self) -> f32
get_intensity() overload
Sourcefn set_intensity(self, value: impl Into<f32>)
fn set_intensity(self, value: impl Into<f32>)
set_intensity(f32) overload
Sourcefn get_bounce_intensity(self) -> f32
fn get_bounce_intensity(self) -> f32
get_bounceIntensity() overload
Sourcefn set_bounce_intensity(self, value: impl Into<f32>)
fn set_bounce_intensity(self, value: impl Into<f32>)
set_bounceIntensity(f32) overload
Sourcefn get_use_bounding_sphere_override(self) -> bool
fn get_use_bounding_sphere_override(self) -> bool
get_useBoundingSphereOverride() overload
Sourcefn set_use_bounding_sphere_override(self, value: impl Into<bool>)
fn set_use_bounding_sphere_override(self, value: impl Into<bool>)
set_useBoundingSphereOverride(bool) overload
Sourcefn get_bounding_sphere_override(self) -> Vector4
fn get_bounding_sphere_override(self) -> Vector4
get_boundingSphereOverride() overload
Sourcefn set_bounding_sphere_override(self, value: impl Into<Vector4>)
fn set_bounding_sphere_override(self, value: impl Into<Vector4>)
set_boundingSphereOverride(crate::unity_engine::vector4::Vector4) overload
Sourcefn get_use_view_frustum_for_shadow_caster_cull(self) -> bool
fn get_use_view_frustum_for_shadow_caster_cull(self) -> bool
get_useViewFrustumForShadowCasterCull() overload
Sourcefn set_use_view_frustum_for_shadow_caster_cull(self, value: impl Into<bool>)
fn set_use_view_frustum_for_shadow_caster_cull(self, value: impl Into<bool>)
set_useViewFrustumForShadowCasterCull(bool) overload
Sourcefn get_shadow_custom_resolution(self) -> i32
fn get_shadow_custom_resolution(self) -> i32
get_shadowCustomResolution() overload
Sourcefn set_shadow_custom_resolution(self, value: impl Into<i32>)
fn set_shadow_custom_resolution(self, value: impl Into<i32>)
set_shadowCustomResolution(i32) overload
Sourcefn get_shadow_bias(self) -> f32
fn get_shadow_bias(self) -> f32
get_shadowBias() overload
Sourcefn set_shadow_bias(self, value: impl Into<f32>)
fn set_shadow_bias(self, value: impl Into<f32>)
set_shadowBias(f32) overload
Sourcefn get_shadow_normal_bias(self) -> f32
fn get_shadow_normal_bias(self) -> f32
get_shadowNormalBias() overload
Sourcefn set_shadow_normal_bias(self, value: impl Into<f32>)
fn set_shadow_normal_bias(self, value: impl Into<f32>)
set_shadowNormalBias(f32) overload
Sourcefn get_shadow_near_plane(self) -> f32
fn get_shadow_near_plane(self) -> f32
get_shadowNearPlane() overload
Sourcefn set_shadow_near_plane(self, value: impl Into<f32>)
fn set_shadow_near_plane(self, value: impl Into<f32>)
set_shadowNearPlane(f32) overload
Sourcefn get_use_shadow_matrix_override(self) -> bool
fn get_use_shadow_matrix_override(self) -> bool
get_useShadowMatrixOverride() overload
Sourcefn set_use_shadow_matrix_override(self, value: impl Into<bool>)
fn set_use_shadow_matrix_override(self, value: impl Into<bool>)
set_useShadowMatrixOverride(bool) overload
Sourcefn get_shadow_matrix_override(self) -> Matrix4x4
fn get_shadow_matrix_override(self) -> Matrix4x4
get_shadowMatrixOverride() overload
Sourcefn set_shadow_matrix_override(self, value: impl Into<Matrix4x4>)
fn set_shadow_matrix_override(self, value: impl Into<Matrix4x4>)
set_shadowMatrixOverride(crate::unity_engine::matrix4x4::Matrix4x4) overload
Sourcefn set_flare(self, value: impl Into<Flare>)
fn set_flare(self, value: impl Into<Flare>)
set_flare(crate::unity_engine::flare::Flare) overload
Sourcefn get_baking_output(self) -> LightBakingOutput
fn get_baking_output(self) -> LightBakingOutput
get_bakingOutput() overload
Sourcefn set_baking_output(self, value: impl Into<LightBakingOutput>)
fn set_baking_output(self, value: impl Into<LightBakingOutput>)
set_bakingOutput(crate::unity_engine::lightbakingoutput::LightBakingOutput) overload
Sourcefn get_culling_mask(self) -> i32
fn get_culling_mask(self) -> i32
get_cullingMask() overload
Sourcefn set_culling_mask(self, value: impl Into<i32>)
fn set_culling_mask(self, value: impl Into<i32>)
set_cullingMask(i32) overload
Sourcefn get_rendering_layer_mask(self) -> i32
fn get_rendering_layer_mask(self) -> i32
get_renderingLayerMask() overload
Sourcefn set_rendering_layer_mask(self, value: impl Into<i32>)
fn set_rendering_layer_mask(self, value: impl Into<i32>)
set_renderingLayerMask(i32) overload
Sourcefn get_light_shadow_caster_mode(self) -> LightShadowCasterMode
fn get_light_shadow_caster_mode(self) -> LightShadowCasterMode
get_lightShadowCasterMode() overload
Sourcefn set_light_shadow_caster_mode(self, value: impl Into<LightShadowCasterMode>)
fn set_light_shadow_caster_mode(self, value: impl Into<LightShadowCasterMode>)
set_lightShadowCasterMode(crate::unity_engine::lightshadowcastermode::LightShadowCasterMode) overload
Sourcefn get_shadows(self) -> LightShadows
fn get_shadows(self) -> LightShadows
get_shadows() overload
Sourcefn set_shadows(self, value: impl Into<LightShadows>)
fn set_shadows(self, value: impl Into<LightShadows>)
set_shadows(crate::unity_engine::lightshadows::LightShadows) overload
Sourcefn get_shadow_strength(self) -> f32
fn get_shadow_strength(self) -> f32
get_shadowStrength() overload
Sourcefn set_shadow_strength(self, value: impl Into<f32>)
fn set_shadow_strength(self, value: impl Into<f32>)
set_shadowStrength(f32) overload
Sourcefn get_shadow_resolution(self) -> LightShadowResolution
fn get_shadow_resolution(self) -> LightShadowResolution
get_shadowResolution() overload
Sourcefn set_shadow_resolution(self, value: impl Into<LightShadowResolution>)
fn set_shadow_resolution(self, value: impl Into<LightShadowResolution>)
set_shadowResolution(crate::unity_engine::rendering::lightshadowresolution::LightShadowResolution) overload
Sourcefn get_shadow_softness(self) -> f32
fn get_shadow_softness(self) -> f32
get_shadowSoftness() overload
Sourcefn set_shadow_softness(self, value: impl Into<f32>)
fn set_shadow_softness(self, value: impl Into<f32>)
set_shadowSoftness(f32) overload
Sourcefn get_shadow_softness_fade(self) -> f32
fn get_shadow_softness_fade(self) -> f32
get_shadowSoftnessFade() overload
Sourcefn set_shadow_softness_fade(self, value: impl Into<f32>)
fn set_shadow_softness_fade(self, value: impl Into<f32>)
set_shadowSoftnessFade(f32) overload
Sourcefn get_layer_shadow_cull_distances(self) -> Array<f32>
fn get_layer_shadow_cull_distances(self) -> Array<f32>
get_layerShadowCullDistances() overload
Sourcefn set_layer_shadow_cull_distances(self, value: impl Into<Array<f32>>)
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
Sourcefn get_render_mode(self) -> LightRenderMode
fn get_render_mode(self) -> LightRenderMode
get_renderMode() overload
Sourcefn set_render_mode(self, value: impl Into<LightRenderMode>)
fn set_render_mode(self, value: impl Into<LightRenderMode>)
set_renderMode(crate::unity_engine::lightrendermode::LightRenderMode) overload
Sourcefn get_baked_index(self) -> i32
fn get_baked_index(self) -> i32
get_bakedIndex() overload
Sourcefn set_baked_index(self, value: impl Into<i32>)
fn set_baked_index(self, value: impl Into<i32>)
set_bakedIndex(i32) overload
Sourcefn add_command_buffer(
self,
evt: impl Into<LightEvent>,
buffer: impl Into<CommandBuffer>,
)
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
Sourcefn add_command_buffer_2(
self,
evt: impl Into<LightEvent>,
buffer: impl Into<CommandBuffer>,
shadow_pass_mask: impl Into<ShadowMapPass>,
)
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
Sourcefn add_command_buffer_async(
self,
evt: impl Into<LightEvent>,
buffer: impl Into<CommandBuffer>,
queue_type: impl Into<ComputeQueueType>,
)
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
Sourcefn 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 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
Sourcefn remove_command_buffer(
self,
evt: impl Into<LightEvent>,
buffer: impl Into<CommandBuffer>,
)
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
Sourcefn remove_command_buffers(self, evt: impl Into<LightEvent>)
fn remove_command_buffers(self, evt: impl Into<LightEvent>)
RemoveCommandBuffers(crate::unity_engine::rendering::lightevent::LightEvent) overload
Sourcefn remove_all_command_buffers(self)
fn remove_all_command_buffers(self)
RemoveAllCommandBuffers() overload
Sourcefn get_command_buffers(self, evt: impl Into<LightEvent>) -> Array<CommandBuffer>
fn get_command_buffers(self, evt: impl Into<LightEvent>) -> Array<CommandBuffer>
GetCommandBuffers(crate::unity_engine::rendering::lightevent::LightEvent) overload
Sourcefn get_command_buffer_count(self) -> i32
fn get_command_buffer_count(self) -> i32
get_commandBufferCount() overload
Sourcefn get_shadow_constant_bias(self) -> f32
fn get_shadow_constant_bias(self) -> f32
get_shadowConstantBias() overload
Sourcefn set_shadow_constant_bias(self, value: impl Into<f32>)
fn set_shadow_constant_bias(self, value: impl Into<f32>)
set_shadowConstantBias(f32) overload
Sourcefn get_shadow_object_size_bias(self) -> f32
fn get_shadow_object_size_bias(self) -> f32
get_shadowObjectSizeBias() overload
Sourcefn set_shadow_object_size_bias(self, value: impl Into<f32>)
fn set_shadow_object_size_bias(self, value: impl Into<f32>)
set_shadowObjectSizeBias(f32) overload
Sourcefn get_attenuate(self) -> bool
fn get_attenuate(self) -> bool
get_attenuate() overload
Sourcefn set_attenuate(self, value: impl Into<bool>)
fn set_attenuate(self, value: impl Into<bool>)
set_attenuate(bool) overload
Sourcefn get_color_injected(self) -> Color
fn get_color_injected(self) -> Color
get_color_Injected(*mutcrate::unity_engine::color::Color) overload
Sourcefn set_color_injected(self) -> Color
fn set_color_injected(self) -> Color
set_color_Injected(*mutcrate::unity_engine::color::Color) overload
Sourcefn get_bounding_sphere_override_injected(self) -> Vector4
fn get_bounding_sphere_override_injected(self) -> Vector4
get_boundingSphereOverride_Injected(*mutcrate::unity_engine::vector4::Vector4) overload
Sourcefn set_bounding_sphere_override_injected(self) -> Vector4
fn set_bounding_sphere_override_injected(self) -> Vector4
set_boundingSphereOverride_Injected(*mutcrate::unity_engine::vector4::Vector4) overload
Sourcefn get_shadow_matrix_override_injected(self) -> Matrix4x4
fn get_shadow_matrix_override_injected(self) -> Matrix4x4
get_shadowMatrixOverride_Injected(*mutcrate::unity_engine::matrix4x4::Matrix4x4) overload
Sourcefn set_shadow_matrix_override_injected(self) -> Matrix4x4
fn set_shadow_matrix_override_injected(self) -> Matrix4x4
set_shadowMatrixOverride_Injected(*mutcrate::unity_engine::matrix4x4::Matrix4x4) overload
Sourcefn get_baking_output_injected(self) -> LightBakingOutput
fn get_baking_output_injected(self) -> LightBakingOutput
get_bakingOutput_Injected(*mutcrate::unity_engine::lightbakingoutput::LightBakingOutput) overload
Sourcefn set_baking_output_injected(self) -> LightBakingOutput
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§
impl<__T: ILight> ILightMethods for __T
unity_engine-light only.