pub trait ILineRendererMethods: ILineRenderer {
Show 55 methods
// Provided methods
fn set_width(self, start: impl Into<f32>, end: impl Into<f32>) { ... }
fn set_colors(self, start: impl Into<Color>, end: impl Into<Color>) { ... }
fn set_vertex_count(self, count: impl Into<i32>) { ... }
fn get_num_positions(self) -> i32 { ... }
fn set_num_positions(self, value: impl Into<i32>) { ... }
fn get_start_width(self) -> f32 { ... }
fn set_start_width(self, value: impl Into<f32>) { ... }
fn get_end_width(self) -> f32 { ... }
fn set_end_width(self, value: impl Into<f32>) { ... }
fn get_width_multiplier(self) -> f32 { ... }
fn set_width_multiplier(self, value: impl Into<f32>) { ... }
fn get_num_corner_vertices(self) -> i32 { ... }
fn set_num_corner_vertices(self, value: impl Into<i32>) { ... }
fn get_num_cap_vertices(self) -> i32 { ... }
fn set_num_cap_vertices(self, value: impl Into<i32>) { ... }
fn get_use_world_space(self) -> bool { ... }
fn set_use_world_space(self, value: impl Into<bool>) { ... }
fn get_loop(self) -> bool { ... }
fn set_loop(self, value: impl Into<bool>) { ... }
fn get_start_color(self) -> Color { ... }
fn set_start_color(self, value: impl Into<Color>) { ... }
fn get_end_color(self) -> Color { ... }
fn set_end_color(self, value: impl Into<Color>) { ... }
fn get_position_count(self) -> i32 { ... }
fn set_position_count(self, value: impl Into<i32>) { ... }
fn set_position(self, index: impl Into<i32>, position: impl Into<Vector3>) { ... }
fn get_position(self, index: impl Into<i32>) -> Vector3 { ... }
fn get_shadow_bias(self) -> f32 { ... }
fn set_shadow_bias(self, value: impl Into<f32>) { ... }
fn get_generate_lighting_data(self) -> bool { ... }
fn set_generate_lighting_data(self, value: impl Into<bool>) { ... }
fn get_texture_mode(self) -> LineTextureMode { ... }
fn set_texture_mode(self, value: impl Into<LineTextureMode>) { ... }
fn get_alignment(self) -> LineAlignment { ... }
fn set_alignment(self, value: impl Into<LineAlignment>) { ... }
fn simplify(self, tolerance: impl Into<f32>) { ... }
fn bake_mesh(self, mesh: impl Into<Mesh>, use_transform: impl Into<bool>) { ... }
fn bake_mesh_2(
self,
mesh: impl Into<Mesh>,
camera: impl Into<Camera>,
use_transform: impl Into<bool>,
) { ... }
fn get_width_curve(self) -> AnimationCurve { ... }
fn set_width_curve(self, value: impl Into<AnimationCurve>) { ... }
fn get_color_gradient(self) -> Gradient { ... }
fn set_color_gradient(self, value: impl Into<Gradient>) { ... }
fn get_width_curve_copy(self) -> AnimationCurve { ... }
fn get_color_gradient_copy(self) -> Gradient { ... }
fn get_positions(self, positions: impl Into<Array<Vector3>>) -> i32 { ... }
fn set_positions(self, positions: impl Into<Array<Vector3>>) { ... }
fn set_positions_with_native_container(
self,
positions: impl Into<IntPtr>,
count: impl Into<i32>,
) { ... }
fn get_positions_with_native_container(
self,
positions: impl Into<IntPtr>,
length: impl Into<i32>,
) -> i32 { ... }
fn ctor(self) { ... }
fn get_start_color_injected(self) -> Color { ... }
fn set_start_color_injected(self) -> Color { ... }
fn get_end_color_injected(self) -> Color { ... }
fn set_end_color_injected(self) -> Color { ... }
fn set_position_injected(self, index: impl Into<i32>) -> Vector3 { ... }
fn get_position_injected(self, index: impl Into<i32>) -> Vector3 { ... }
}Provided Methods§
Sourcefn set_colors(self, start: impl Into<Color>, end: impl Into<Color>)
fn set_colors(self, start: impl Into<Color>, end: impl Into<Color>)
SetColors(crate::unity_engine::color::Color, crate::unity_engine::color::Color) overload
Sourcefn set_vertex_count(self, count: impl Into<i32>)
fn set_vertex_count(self, count: impl Into<i32>)
SetVertexCount(i32) overload
Sourcefn get_num_positions(self) -> i32
fn get_num_positions(self) -> i32
get_numPositions() overload
Sourcefn set_num_positions(self, value: impl Into<i32>)
fn set_num_positions(self, value: impl Into<i32>)
set_numPositions(i32) overload
Sourcefn get_start_width(self) -> f32
fn get_start_width(self) -> f32
get_startWidth() overload
Sourcefn set_start_width(self, value: impl Into<f32>)
fn set_start_width(self, value: impl Into<f32>)
set_startWidth(f32) overload
Sourcefn get_end_width(self) -> f32
fn get_end_width(self) -> f32
get_endWidth() overload
Sourcefn set_end_width(self, value: impl Into<f32>)
fn set_end_width(self, value: impl Into<f32>)
set_endWidth(f32) overload
Sourcefn get_width_multiplier(self) -> f32
fn get_width_multiplier(self) -> f32
get_widthMultiplier() overload
Sourcefn set_width_multiplier(self, value: impl Into<f32>)
fn set_width_multiplier(self, value: impl Into<f32>)
set_widthMultiplier(f32) overload
Sourcefn get_num_corner_vertices(self) -> i32
fn get_num_corner_vertices(self) -> i32
get_numCornerVertices() overload
Sourcefn set_num_corner_vertices(self, value: impl Into<i32>)
fn set_num_corner_vertices(self, value: impl Into<i32>)
set_numCornerVertices(i32) overload
Sourcefn get_num_cap_vertices(self) -> i32
fn get_num_cap_vertices(self) -> i32
get_numCapVertices() overload
Sourcefn set_num_cap_vertices(self, value: impl Into<i32>)
fn set_num_cap_vertices(self, value: impl Into<i32>)
set_numCapVertices(i32) overload
Sourcefn get_use_world_space(self) -> bool
fn get_use_world_space(self) -> bool
get_useWorldSpace() overload
Sourcefn set_use_world_space(self, value: impl Into<bool>)
fn set_use_world_space(self, value: impl Into<bool>)
set_useWorldSpace(bool) overload
Sourcefn get_start_color(self) -> Color
fn get_start_color(self) -> Color
get_startColor() overload
Sourcefn set_start_color(self, value: impl Into<Color>)
fn set_start_color(self, value: impl Into<Color>)
set_startColor(crate::unity_engine::color::Color) overload
Sourcefn get_end_color(self) -> Color
fn get_end_color(self) -> Color
get_endColor() overload
Sourcefn set_end_color(self, value: impl Into<Color>)
fn set_end_color(self, value: impl Into<Color>)
set_endColor(crate::unity_engine::color::Color) overload
Sourcefn get_position_count(self) -> i32
fn get_position_count(self) -> i32
get_positionCount() overload
Sourcefn set_position_count(self, value: impl Into<i32>)
fn set_position_count(self, value: impl Into<i32>)
set_positionCount(i32) overload
Sourcefn set_position(self, index: impl Into<i32>, position: impl Into<Vector3>)
fn set_position(self, index: impl Into<i32>, position: impl Into<Vector3>)
SetPosition(i32, crate::unity_engine::vector3::Vector3) overload
Sourcefn get_position(self, index: impl Into<i32>) -> Vector3
fn get_position(self, index: impl Into<i32>) -> Vector3
GetPosition(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_generate_lighting_data(self) -> bool
fn get_generate_lighting_data(self) -> bool
get_generateLightingData() overload
Sourcefn set_generate_lighting_data(self, value: impl Into<bool>)
fn set_generate_lighting_data(self, value: impl Into<bool>)
set_generateLightingData(bool) overload
Sourcefn get_texture_mode(self) -> LineTextureMode
fn get_texture_mode(self) -> LineTextureMode
get_textureMode() overload
Sourcefn set_texture_mode(self, value: impl Into<LineTextureMode>)
fn set_texture_mode(self, value: impl Into<LineTextureMode>)
set_textureMode(crate::unity_engine::linetexturemode::LineTextureMode) overload
Sourcefn get_alignment(self) -> LineAlignment
fn get_alignment(self) -> LineAlignment
get_alignment() overload
Sourcefn set_alignment(self, value: impl Into<LineAlignment>)
fn set_alignment(self, value: impl Into<LineAlignment>)
set_alignment(crate::unity_engine::linealignment::LineAlignment) overload
Sourcefn bake_mesh(self, mesh: impl Into<Mesh>, use_transform: impl Into<bool>)
fn bake_mesh(self, mesh: impl Into<Mesh>, use_transform: impl Into<bool>)
BakeMesh(crate::unity_engine::mesh::Mesh, bool) overload
Sourcefn bake_mesh_2(
self,
mesh: impl Into<Mesh>,
camera: impl Into<Camera>,
use_transform: impl Into<bool>,
)
fn bake_mesh_2( self, mesh: impl Into<Mesh>, camera: impl Into<Camera>, use_transform: impl Into<bool>, )
BakeMesh(crate::unity_engine::mesh::Mesh, crate::unity_engine::camera::Camera, bool) overload
Sourcefn get_width_curve(self) -> AnimationCurve
fn get_width_curve(self) -> AnimationCurve
get_widthCurve() overload
Sourcefn set_width_curve(self, value: impl Into<AnimationCurve>)
fn set_width_curve(self, value: impl Into<AnimationCurve>)
set_widthCurve(crate::unity_engine::animationcurve::AnimationCurve) overload
Sourcefn get_color_gradient(self) -> Gradient
fn get_color_gradient(self) -> Gradient
get_colorGradient() overload
Sourcefn set_color_gradient(self, value: impl Into<Gradient>)
fn set_color_gradient(self, value: impl Into<Gradient>)
set_colorGradient(crate::unity_engine::gradient::Gradient) overload
Sourcefn get_width_curve_copy(self) -> AnimationCurve
fn get_width_curve_copy(self) -> AnimationCurve
GetWidthCurveCopy() overload
Sourcefn get_color_gradient_copy(self) -> Gradient
fn get_color_gradient_copy(self) -> Gradient
GetColorGradientCopy() overload
Sourcefn get_positions(self, positions: impl Into<Array<Vector3>>) -> i32
fn get_positions(self, positions: impl Into<Array<Vector3>>) -> i32
GetPositions(::unity::Array<crate::unity_engine::vector3::Vector3>) overload
Sourcefn set_positions(self, positions: impl Into<Array<Vector3>>)
fn set_positions(self, positions: impl Into<Array<Vector3>>)
SetPositions(::unity::Array<crate::unity_engine::vector3::Vector3>) overload
Sourcefn set_positions_with_native_container(
self,
positions: impl Into<IntPtr>,
count: impl Into<i32>,
)
fn set_positions_with_native_container( self, positions: impl Into<IntPtr>, count: impl Into<i32>, )
SetPositionsWithNativeContainer(::unity::IntPtr, i32) overload
Sourcefn get_positions_with_native_container(
self,
positions: impl Into<IntPtr>,
length: impl Into<i32>,
) -> i32
fn get_positions_with_native_container( self, positions: impl Into<IntPtr>, length: impl Into<i32>, ) -> i32
GetPositionsWithNativeContainer(::unity::IntPtr, i32) overload
Sourcefn get_start_color_injected(self) -> Color
fn get_start_color_injected(self) -> Color
get_startColor_Injected(*mutcrate::unity_engine::color::Color) overload
Sourcefn set_start_color_injected(self) -> Color
fn set_start_color_injected(self) -> Color
set_startColor_Injected(*mutcrate::unity_engine::color::Color) overload
Sourcefn get_end_color_injected(self) -> Color
fn get_end_color_injected(self) -> Color
get_endColor_Injected(*mutcrate::unity_engine::color::Color) overload
Sourcefn set_end_color_injected(self) -> Color
fn set_end_color_injected(self) -> Color
set_endColor_Injected(*mutcrate::unity_engine::color::Color) overload
Sourcefn set_position_injected(self, index: impl Into<i32>) -> Vector3
fn set_position_injected(self, index: impl Into<i32>) -> Vector3
SetPosition_Injected(i32, *mutcrate::unity_engine::vector3::Vector3) overload
Sourcefn get_position_injected(self, index: impl Into<i32>) -> Vector3
fn get_position_injected(self, index: impl Into<i32>) -> Vector3
GetPosition_Injected(i32, *mutcrate::unity_engine::vector3::Vector3) 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: ILineRenderer> ILineRendererMethods for __T
unity_engine-linerenderer only.