pub trait ILight2D_2Methods: ILight2D_2 {
Show 50 methods
// Provided methods
fn get_affected_sorting_layers(self) -> Array<i32> { ... }
fn get_light_cookie_sprite_instance_id(self) -> i32 { ... }
fn get_bounding_sphere(self) -> BoundingSphere { ... }
fn set_bounding_sphere(self, value: impl Into<BoundingSphere>) { ... }
fn get_light_mesh(self) -> Mesh { ... }
fn get_light_type(self) -> Light2D_LightType { ... }
fn set_light_type(self, value: impl Into<Light2D_LightType>) { ... }
fn get_blend_style_index(self) -> i32 { ... }
fn set_blend_style_index(self, value: impl Into<i32>) { ... }
fn get_shadow_intensity(self) -> f32 { ... }
fn set_shadow_intensity(self, value: impl Into<f32>) { ... }
fn get_shadow_volume_intensity(self) -> f32 { ... }
fn set_shadow_volume_intensity(self, value: impl Into<f32>) { ... }
fn get_color(self) -> Color { ... }
fn set_color(self, value: impl Into<Color>) { ... }
fn get_intensity(self) -> f32 { ... }
fn set_intensity(self, value: impl Into<f32>) { ... }
fn get_volume_opacity(self) -> f32 { ... }
fn get_light_cookie_sprite(self) -> Sprite { ... }
fn get_falloff_intensity(self) -> f32 { ... }
fn get_use_normal_map(self) -> bool { ... }
fn get_alpha_blend_on_overlap(self) -> bool { ... }
fn get_light_order(self) -> i32 { ... }
fn set_light_order(self, value: impl Into<i32>) { ... }
fn get_top_most_lit_layer(self) -> i32 { ... }
fn update_mesh(self) { ... }
fn update_bounding_sphere(self) { ... }
fn is_lit_layer(self, layer: impl Into<i32>) -> bool { ... }
fn awake(self) { ... }
fn on_enable(self) { ... }
fn on_disable(self) { ... }
fn late_update(self) { ... }
fn get_point_light_inner_angle(self) -> f32 { ... }
fn set_point_light_inner_angle(self, value: impl Into<f32>) { ... }
fn get_point_light_outer_angle(self) -> f32 { ... }
fn set_point_light_outer_angle(self, value: impl Into<f32>) { ... }
fn get_point_light_inner_radius(self) -> f32 { ... }
fn set_point_light_inner_radius(self, value: impl Into<f32>) { ... }
fn get_point_light_outer_radius(self) -> f32 { ... }
fn set_point_light_outer_radius(self, value: impl Into<f32>) { ... }
fn get_point_light_distance(self) -> f32 { ... }
fn get_point_light_quality(self) -> Light2D_PointLightQuality { ... }
fn get_is_point_light(self) -> bool { ... }
fn get_shape_light_parametric_sides(self) -> i32 { ... }
fn get_shape_light_parametric_angle_offset(self) -> f32 { ... }
fn get_shape_light_parametric_radius(self) -> f32 { ... }
fn get_shape_light_falloff_size(self) -> f32 { ... }
fn get_shape_light_falloff_offset(self) -> Vector2 { ... }
fn get_shape_path(self) -> Array<Vector3> { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn get_affected_sorting_layers(self) -> Array<i32>
fn get_affected_sorting_layers(self) -> Array<i32>
get_affectedSortingLayers() overload
get_lightCookieSpriteInstanceID() overload
Sourcefn get_bounding_sphere(self) -> BoundingSphere
fn get_bounding_sphere(self) -> BoundingSphere
get_boundingSphere() overload
Sourcefn set_bounding_sphere(self, value: impl Into<BoundingSphere>)
fn set_bounding_sphere(self, value: impl Into<BoundingSphere>)
set_boundingSphere(crate::unity_engine::boundingsphere::BoundingSphere) overload
Sourcefn get_light_mesh(self) -> Mesh
fn get_light_mesh(self) -> Mesh
get_lightMesh() overload
Sourcefn get_light_type(self) -> Light2D_LightType
fn get_light_type(self) -> Light2D_LightType
get_lightType() overload
Sourcefn set_light_type(self, value: impl Into<Light2D_LightType>)
fn set_light_type(self, value: impl Into<Light2D_LightType>)
set_lightType(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_LightType) overload
Sourcefn get_blend_style_index(self) -> i32
fn get_blend_style_index(self) -> i32
get_blendStyleIndex() overload
Sourcefn set_blend_style_index(self, value: impl Into<i32>)
fn set_blend_style_index(self, value: impl Into<i32>)
set_blendStyleIndex(i32) overload
Sourcefn get_shadow_intensity(self) -> f32
fn get_shadow_intensity(self) -> f32
get_shadowIntensity() overload
Sourcefn set_shadow_intensity(self, value: impl Into<f32>)
fn set_shadow_intensity(self, value: impl Into<f32>)
set_shadowIntensity(f32) overload
Sourcefn get_shadow_volume_intensity(self) -> f32
fn get_shadow_volume_intensity(self) -> f32
get_shadowVolumeIntensity() overload
Sourcefn set_shadow_volume_intensity(self, value: impl Into<f32>)
fn set_shadow_volume_intensity(self, value: impl Into<f32>)
set_shadowVolumeIntensity(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_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_volume_opacity(self) -> f32
fn get_volume_opacity(self) -> f32
get_volumeOpacity() overload
get_lightCookieSprite() overload
Sourcefn get_falloff_intensity(self) -> f32
fn get_falloff_intensity(self) -> f32
get_falloffIntensity() overload
Sourcefn get_use_normal_map(self) -> bool
fn get_use_normal_map(self) -> bool
get_useNormalMap() overload
Sourcefn get_alpha_blend_on_overlap(self) -> bool
fn get_alpha_blend_on_overlap(self) -> bool
get_alphaBlendOnOverlap() overload
Sourcefn get_light_order(self) -> i32
fn get_light_order(self) -> i32
get_lightOrder() overload
Sourcefn set_light_order(self, value: impl Into<i32>)
fn set_light_order(self, value: impl Into<i32>)
set_lightOrder(i32) overload
Sourcefn get_top_most_lit_layer(self) -> i32
fn get_top_most_lit_layer(self) -> i32
GetTopMostLitLayer() overload
Sourcefn update_mesh(self)
fn update_mesh(self)
UpdateMesh() overload
Sourcefn update_bounding_sphere(self)
fn update_bounding_sphere(self)
UpdateBoundingSphere() overload
Sourcefn is_lit_layer(self, layer: impl Into<i32>) -> bool
fn is_lit_layer(self, layer: impl Into<i32>) -> bool
IsLitLayer(i32) overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn late_update(self)
fn late_update(self)
LateUpdate() overload
Sourcefn get_point_light_inner_angle(self) -> f32
fn get_point_light_inner_angle(self) -> f32
get_pointLightInnerAngle() overload
Sourcefn set_point_light_inner_angle(self, value: impl Into<f32>)
fn set_point_light_inner_angle(self, value: impl Into<f32>)
set_pointLightInnerAngle(f32) overload
Sourcefn get_point_light_outer_angle(self) -> f32
fn get_point_light_outer_angle(self) -> f32
get_pointLightOuterAngle() overload
Sourcefn set_point_light_outer_angle(self, value: impl Into<f32>)
fn set_point_light_outer_angle(self, value: impl Into<f32>)
set_pointLightOuterAngle(f32) overload
Sourcefn get_point_light_inner_radius(self) -> f32
fn get_point_light_inner_radius(self) -> f32
get_pointLightInnerRadius() overload
Sourcefn set_point_light_inner_radius(self, value: impl Into<f32>)
fn set_point_light_inner_radius(self, value: impl Into<f32>)
set_pointLightInnerRadius(f32) overload
Sourcefn get_point_light_outer_radius(self) -> f32
fn get_point_light_outer_radius(self) -> f32
get_pointLightOuterRadius() overload
Sourcefn set_point_light_outer_radius(self, value: impl Into<f32>)
fn set_point_light_outer_radius(self, value: impl Into<f32>)
set_pointLightOuterRadius(f32) overload
Sourcefn get_point_light_distance(self) -> f32
fn get_point_light_distance(self) -> f32
get_pointLightDistance() overload
Sourcefn get_point_light_quality(self) -> Light2D_PointLightQuality
fn get_point_light_quality(self) -> Light2D_PointLightQuality
get_pointLightQuality() overload
Sourcefn get_is_point_light(self) -> bool
fn get_is_point_light(self) -> bool
get_isPointLight() overload
Sourcefn get_shape_light_parametric_sides(self) -> i32
fn get_shape_light_parametric_sides(self) -> i32
get_shapeLightParametricSides() overload
Sourcefn get_shape_light_parametric_angle_offset(self) -> f32
fn get_shape_light_parametric_angle_offset(self) -> f32
get_shapeLightParametricAngleOffset() overload
Sourcefn get_shape_light_parametric_radius(self) -> f32
fn get_shape_light_parametric_radius(self) -> f32
get_shapeLightParametricRadius() overload
Sourcefn get_shape_light_falloff_size(self) -> f32
fn get_shape_light_falloff_size(self) -> f32
get_shapeLightFalloffSize() overload
Sourcefn get_shape_light_falloff_offset(self) -> Vector2
fn get_shape_light_falloff_offset(self) -> Vector2
get_shapeLightFalloffOffset() overload
Sourcefn get_shape_path(self) -> Array<Vector3>
fn get_shape_path(self) -> Array<Vector3>
get_shapePath() 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: ILight2D_2> ILight2D_2Methods for __T
unity_engine-experimental-rendering-universal-light2d_2 only.