Skip to main content

ILineRendererMethods

Trait ILineRendererMethods 

Source
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§

Source

fn set_width(self, start: impl Into<f32>, end: impl Into<f32>)

SetWidth(f32, f32) overload

Source

fn set_colors(self, start: impl Into<Color>, end: impl Into<Color>)

SetColors(crate::unity_engine::color::Color, crate::unity_engine::color::Color) overload

Source

fn set_vertex_count(self, count: impl Into<i32>)

SetVertexCount(i32) overload

Source

fn get_num_positions(self) -> i32

get_numPositions() overload

Source

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

set_numPositions(i32) overload

Source

fn get_start_width(self) -> f32

get_startWidth() overload

Source

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

set_startWidth(f32) overload

Source

fn get_end_width(self) -> f32

get_endWidth() overload

Source

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

set_endWidth(f32) overload

Source

fn get_width_multiplier(self) -> f32

get_widthMultiplier() overload

Source

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

set_widthMultiplier(f32) overload

Source

fn get_num_corner_vertices(self) -> i32

get_numCornerVertices() overload

Source

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

set_numCornerVertices(i32) overload

Source

fn get_num_cap_vertices(self) -> i32

get_numCapVertices() overload

Source

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

set_numCapVertices(i32) overload

Source

fn get_use_world_space(self) -> bool

get_useWorldSpace() overload

Source

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

set_useWorldSpace(bool) overload

Source

fn get_loop(self) -> bool

get_loop() overload

Source

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

set_loop(bool) overload

Source

fn get_start_color(self) -> Color

get_startColor() overload

Source

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

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

Source

fn get_end_color(self) -> Color

get_endColor() overload

Source

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

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

Source

fn get_position_count(self) -> i32

get_positionCount() overload

Source

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

set_positionCount(i32) overload

Source

fn set_position(self, index: impl Into<i32>, position: impl Into<Vector3>)

SetPosition(i32, crate::unity_engine::vector3::Vector3) overload

Source

fn get_position(self, index: impl Into<i32>) -> Vector3

GetPosition(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_generate_lighting_data(self) -> bool

get_generateLightingData() overload

Source

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

set_generateLightingData(bool) overload

Source

fn get_texture_mode(self) -> LineTextureMode

get_textureMode() overload

Source

fn set_texture_mode(self, value: impl Into<LineTextureMode>)

set_textureMode(crate::unity_engine::linetexturemode::LineTextureMode) overload

Source

fn get_alignment(self) -> LineAlignment

get_alignment() overload

Source

fn set_alignment(self, value: impl Into<LineAlignment>)

set_alignment(crate::unity_engine::linealignment::LineAlignment) overload

Source

fn simplify(self, tolerance: impl Into<f32>)

Simplify(f32) overload

Source

fn bake_mesh(self, mesh: impl Into<Mesh>, use_transform: impl Into<bool>)

BakeMesh(crate::unity_engine::mesh::Mesh, bool) overload

Source

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

Source

fn get_width_curve(self) -> AnimationCurve

get_widthCurve() overload

Source

fn set_width_curve(self, value: impl Into<AnimationCurve>)

set_widthCurve(crate::unity_engine::animationcurve::AnimationCurve) overload

Source

fn get_color_gradient(self) -> Gradient

get_colorGradient() overload

Source

fn set_color_gradient(self, value: impl Into<Gradient>)

set_colorGradient(crate::unity_engine::gradient::Gradient) overload

Source

fn get_width_curve_copy(self) -> AnimationCurve

GetWidthCurveCopy() overload

Source

fn get_color_gradient_copy(self) -> Gradient

GetColorGradientCopy() overload

Source

fn get_positions(self, positions: impl Into<Array<Vector3>>) -> i32

GetPositions(::unity::Array<crate::unity_engine::vector3::Vector3>) overload

Source

fn set_positions(self, positions: impl Into<Array<Vector3>>)

SetPositions(::unity::Array<crate::unity_engine::vector3::Vector3>) overload

Source

fn set_positions_with_native_container( self, positions: impl Into<IntPtr>, count: impl Into<i32>, )

SetPositionsWithNativeContainer(::unity::IntPtr, i32) overload

Source

fn get_positions_with_native_container( self, positions: impl Into<IntPtr>, length: impl Into<i32>, ) -> i32

GetPositionsWithNativeContainer(::unity::IntPtr, i32) overload

Source

fn ctor(self)

.ctor() overload

Source

fn get_start_color_injected(self) -> Color

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

Source

fn set_start_color_injected(self) -> Color

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

Source

fn get_end_color_injected(self) -> Color

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

Source

fn set_end_color_injected(self) -> Color

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

Source

fn set_position_injected(self, index: impl Into<i32>) -> Vector3

SetPosition_Injected(i32, *mutcrate::unity_engine::vector3::Vector3) overload

Source

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§

Source§

impl<__T: ILineRenderer> ILineRendererMethods for __T

Available on crate feature unity_engine-linerenderer only.