1#[cfg(feature = "unity_engine-linerenderer-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 component::{Component, IComponent},
12 object_2::{IObject_2, Object_2},
13 renderer::{IRenderer, Renderer},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/linerenderer/LineRenderer.md"))]
18 #[::unity::class(namespace = "UnityEngine", name = "LineRenderer")]
19 #[parent(crate::unity_engine::renderer::Renderer)]
20 pub struct LineRenderer {}
21}
22
23#[cfg(feature = "unity_engine-linerenderer-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-linerenderer")]
27pub trait ILineRendererMethods: ILineRenderer {
28 #[doc = "`SetWidth(f32, f32)` overload"]
29 fn set_width(self, start: impl ::core::convert::Into<f32>, end: impl ::core::convert::Into<f32>) -> () {
30 unsafe {
31 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x2c58000usize)as*mut u8,();
33(LineRenderer)__receiver,(f32)::core::convert::Into::into(start),(f32)::core::convert::Into::into(end))
34 }
35 }
36 #[doc = "`SetColors(crate::unity_engine::color::Color, crate::unity_engine::color::Color)` overload"]
37 fn set_colors(
38 self,
39 start: impl ::core::convert::Into<crate::unity_engine::color::Color>,
40 end: impl ::core::convert::Into<crate::unity_engine::color::Color>,
41 ) -> () {
42 unsafe {
43 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x2c58120usize)as*mut u8,();
45(LineRenderer)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(start),(crate::unity_engine::color::Color)::core::convert::Into::into(end))
46 }
47 }
48 #[doc = "`SetVertexCount(i32)` overload"]
49 fn set_vertex_count(self, count: impl ::core::convert::Into<i32>) -> () {
50 unsafe {
51 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x2c58290usize)as*mut u8,();
53(LineRenderer)__receiver,(i32)::core::convert::Into::into(count))
54 }
55 }
56 #[doc = "`get_numPositions()` overload"]
57 fn get_num_positions(self) -> i32 {
58 unsafe {
59 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x2c58330usize)as*mut u8,i32;
61(LineRenderer)__receiver)
62 }
63 }
64 #[doc = "`set_numPositions(i32)` overload"]
65 fn set_num_positions(self, value: impl ::core::convert::Into<i32>) -> () {
66 unsafe {
67 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x2c583d0usize)as*mut u8,();
69(LineRenderer)__receiver,(i32)::core::convert::Into::into(value))
70 }
71 }
72 #[doc = "`get_startWidth()` overload"]
73 fn get_start_width(self) -> f32 {
74 unsafe {
75 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x2c58420usize)as*mut u8,f32;
77(LineRenderer)__receiver)
78 }
79 }
80 #[doc = "`set_startWidth(f32)` overload"]
81 fn set_start_width(self, value: impl ::core::convert::Into<f32>) -> () {
82 unsafe {
83 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x2c58080usize)as*mut u8,();
85(LineRenderer)__receiver,(f32)::core::convert::Into::into(value))
86 }
87 }
88 #[doc = "`get_endWidth()` overload"]
89 fn get_end_width(self) -> f32 {
90 unsafe {
91 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x2c58470usize)as*mut u8,f32;
93(LineRenderer)__receiver)
94 }
95 }
96 #[doc = "`set_endWidth(f32)` overload"]
97 fn set_end_width(self, value: impl ::core::convert::Into<f32>) -> () {
98 unsafe {
99 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x2c580d0usize)as*mut u8,();
101(LineRenderer)__receiver,(f32)::core::convert::Into::into(value))
102 }
103 }
104 #[doc = "`get_widthMultiplier()` overload"]
105 fn get_width_multiplier(self) -> f32 {
106 unsafe {
107 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x2c584c0usize)as*mut u8,f32;
109(LineRenderer)__receiver)
110 }
111 }
112 #[doc = "`set_widthMultiplier(f32)` overload"]
113 fn set_width_multiplier(self, value: impl ::core::convert::Into<f32>) -> () {
114 unsafe {
115 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x2c58510usize)as*mut u8,();
117(LineRenderer)__receiver,(f32)::core::convert::Into::into(value))
118 }
119 }
120 #[doc = "`get_numCornerVertices()` overload"]
121 fn get_num_corner_vertices(self) -> i32 {
122 unsafe {
123 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x2c58560usize)as*mut u8,i32;
125(LineRenderer)__receiver)
126 }
127 }
128 #[doc = "`set_numCornerVertices(i32)` overload"]
129 fn set_num_corner_vertices(self, value: impl ::core::convert::Into<i32>) -> () {
130 unsafe {
131 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x2c585b0usize)as*mut u8,();
133(LineRenderer)__receiver,(i32)::core::convert::Into::into(value))
134 }
135 }
136 #[doc = "`get_numCapVertices()` overload"]
137 fn get_num_cap_vertices(self) -> i32 {
138 unsafe {
139 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 ::unity::il2cpp_call!((::unity::module_base()+0x2c58600usize)as*mut u8,i32;
141(LineRenderer)__receiver)
142 }
143 }
144 #[doc = "`set_numCapVertices(i32)` overload"]
145 fn set_num_cap_vertices(self, value: impl ::core::convert::Into<i32>) -> () {
146 unsafe {
147 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x2c58650usize)as*mut u8,();
149(LineRenderer)__receiver,(i32)::core::convert::Into::into(value))
150 }
151 }
152 #[doc = "`get_useWorldSpace()` overload"]
153 fn get_use_world_space(self) -> bool {
154 unsafe {
155 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x2c586a0usize)as*mut u8,bool;
157(LineRenderer)__receiver)
158 }
159 }
160 #[doc = "`set_useWorldSpace(bool)` overload"]
161 fn set_use_world_space(self, value: impl ::core::convert::Into<bool>) -> () {
162 unsafe {
163 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x2c586f0usize)as*mut u8,();
165(LineRenderer)__receiver,(bool)::core::convert::Into::into(value))
166 }
167 }
168 #[doc = "`get_loop()` overload"]
169 fn get_loop(self) -> bool {
170 unsafe {
171 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x2c58740usize)as*mut u8,bool;
173(LineRenderer)__receiver)
174 }
175 }
176 #[doc = "`set_loop(bool)` overload"]
177 fn set_loop(self, value: impl ::core::convert::Into<bool>) -> () {
178 unsafe {
179 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x2c58790usize)as*mut u8,();
181(LineRenderer)__receiver,(bool)::core::convert::Into::into(value))
182 }
183 }
184 #[doc = "`get_startColor()` overload"]
185 fn get_start_color(self) -> crate::unity_engine::color::Color {
186 unsafe {
187 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x2c587e0usize)as*mut u8,crate::unity_engine::color::Color;
189(LineRenderer)__receiver)
190 }
191 }
192 #[doc = "`set_startColor(crate::unity_engine::color::Color)` overload"]
193 fn set_start_color(self, value: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
194 unsafe {
195 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196 ::unity::il2cpp_call!((::unity::module_base()+0x2c581d0usize)as*mut u8,();
197(LineRenderer)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(value))
198 }
199 }
200 #[doc = "`get_endColor()` overload"]
201 fn get_end_color(self) -> crate::unity_engine::color::Color {
202 unsafe {
203 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 ::unity::il2cpp_call!((::unity::module_base()+0x2c588e0usize)as*mut u8,crate::unity_engine::color::Color;
205(LineRenderer)__receiver)
206 }
207 }
208 #[doc = "`set_endColor(crate::unity_engine::color::Color)` overload"]
209 fn set_end_color(self, value: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
210 unsafe {
211 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212 ::unity::il2cpp_call!((::unity::module_base()+0x2c58230usize)as*mut u8,();
213(LineRenderer)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(value))
214 }
215 }
216 #[doc = "`get_positionCount()` overload"]
217 fn get_position_count(self) -> i32 {
218 unsafe {
219 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220 ::unity::il2cpp_call!((::unity::module_base()+0x2c58380usize)as*mut u8,i32;
221(LineRenderer)__receiver)
222 }
223 }
224 #[doc = "`set_positionCount(i32)` overload"]
225 fn set_position_count(self, value: impl ::core::convert::Into<i32>) -> () {
226 unsafe {
227 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228 ::unity::il2cpp_call!((::unity::module_base()+0x2c582e0usize)as*mut u8,();
229(LineRenderer)__receiver,(i32)::core::convert::Into::into(value))
230 }
231 }
232 #[doc = "`SetPosition(i32, crate::unity_engine::vector3::Vector3)` overload"]
233 fn set_position(self, index: impl ::core::convert::Into<i32>, position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
234 unsafe {
235 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236 ::unity::il2cpp_call!((::unity::module_base()+0x2c589e0usize)as*mut u8,();
237(LineRenderer)__receiver,(i32)::core::convert::Into::into(index),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(position))
238 }
239 }
240 #[doc = "`GetPosition(i32)` overload"]
241 fn get_position(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector3::Vector3 {
242 unsafe {
243 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
244 ::unity::il2cpp_call!((::unity::module_base()+0x2c58ab0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
245(LineRenderer)__receiver,(i32)::core::convert::Into::into(index))
246 }
247 }
248 #[doc = "`get_shadowBias()` overload"]
249 fn get_shadow_bias(self) -> f32 {
250 unsafe {
251 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
252 ::unity::il2cpp_call!((::unity::module_base()+0x2c58b80usize)as*mut u8,f32;
253(LineRenderer)__receiver)
254 }
255 }
256 #[doc = "`set_shadowBias(f32)` overload"]
257 fn set_shadow_bias(self, value: impl ::core::convert::Into<f32>) -> () {
258 unsafe {
259 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 ::unity::il2cpp_call!((::unity::module_base()+0x2c58bd0usize)as*mut u8,();
261(LineRenderer)__receiver,(f32)::core::convert::Into::into(value))
262 }
263 }
264 #[doc = "`get_generateLightingData()` overload"]
265 fn get_generate_lighting_data(self) -> bool {
266 unsafe {
267 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268 ::unity::il2cpp_call!((::unity::module_base()+0x2c58c20usize)as*mut u8,bool;
269(LineRenderer)__receiver)
270 }
271 }
272 #[doc = "`set_generateLightingData(bool)` overload"]
273 fn set_generate_lighting_data(self, value: impl ::core::convert::Into<bool>) -> () {
274 unsafe {
275 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276 ::unity::il2cpp_call!((::unity::module_base()+0x2c58c70usize)as*mut u8,();
277(LineRenderer)__receiver,(bool)::core::convert::Into::into(value))
278 }
279 }
280 #[doc = "`get_textureMode()` overload"]
281 fn get_texture_mode(self) -> crate::unity_engine::linetexturemode::LineTextureMode {
282 unsafe {
283 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284 ::unity::il2cpp_call!((::unity::module_base()+0x2c58cc0usize)as*mut u8,crate::unity_engine::linetexturemode::LineTextureMode;
285(LineRenderer)__receiver)
286 }
287 }
288 #[doc = "`set_textureMode(crate::unity_engine::linetexturemode::LineTextureMode)` overload"]
289 fn set_texture_mode(self, value: impl ::core::convert::Into<crate::unity_engine::linetexturemode::LineTextureMode>) -> () {
290 unsafe {
291 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292 ::unity::il2cpp_call!((::unity::module_base()+0x2c58d10usize)as*mut u8,();
293(LineRenderer)__receiver,(crate::unity_engine::linetexturemode::LineTextureMode)::core::convert::Into::into(value))
294 }
295 }
296 #[doc = "`get_alignment()` overload"]
297 fn get_alignment(self) -> crate::unity_engine::linealignment::LineAlignment {
298 unsafe {
299 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300 ::unity::il2cpp_call!((::unity::module_base()+0x2c58d60usize)as*mut u8,crate::unity_engine::linealignment::LineAlignment;
301(LineRenderer)__receiver)
302 }
303 }
304 #[doc = "`set_alignment(crate::unity_engine::linealignment::LineAlignment)` overload"]
305 fn set_alignment(self, value: impl ::core::convert::Into<crate::unity_engine::linealignment::LineAlignment>) -> () {
306 unsafe {
307 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308 ::unity::il2cpp_call!((::unity::module_base()+0x2c58db0usize)as*mut u8,();
309(LineRenderer)__receiver,(crate::unity_engine::linealignment::LineAlignment)::core::convert::Into::into(value))
310 }
311 }
312 #[doc = "`Simplify(f32)` overload"]
313 fn simplify(self, tolerance: impl ::core::convert::Into<f32>) -> () {
314 unsafe {
315 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316 ::unity::il2cpp_call!((::unity::module_base()+0x2c58e00usize)as*mut u8,();
317(LineRenderer)__receiver,(f32)::core::convert::Into::into(tolerance))
318 }
319 }
320 #[doc = "`BakeMesh(crate::unity_engine::mesh::Mesh, bool)` overload"]
321 fn bake_mesh(self, mesh: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>, use_transform: impl ::core::convert::Into<bool>) -> () {
322 unsafe {
323 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324 ::unity::il2cpp_call!((::unity::module_base()+0x2c58e50usize)as*mut u8,();
325(LineRenderer)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(mesh),(bool)::core::convert::Into::into(use_transform))
326 }
327 }
328 #[doc = "`BakeMesh(crate::unity_engine::mesh::Mesh, crate::unity_engine::camera::Camera, bool)` overload"]
329 fn bake_mesh_2(
330 self,
331 mesh: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>,
332 camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
333 use_transform: impl ::core::convert::Into<bool>,
334 ) -> () {
335 unsafe {
336 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
337 ::unity::il2cpp_call!((::unity::module_base()+0x2c58ee0usize)as*mut u8,();
338(LineRenderer)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(mesh),(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(bool)::core::convert::Into::into(use_transform))
339 }
340 }
341 #[doc = "`get_widthCurve()` overload"]
342 fn get_width_curve(self) -> crate::unity_engine::animationcurve::AnimationCurve {
343 unsafe {
344 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
345 ::unity::il2cpp_call!((::unity::module_base()+0x2c58f50usize)as*mut u8,crate::unity_engine::animationcurve::AnimationCurve;
346(LineRenderer)__receiver)
347 }
348 }
349 #[doc = "`set_widthCurve(crate::unity_engine::animationcurve::AnimationCurve)` overload"]
350 fn set_width_curve(self, value: impl ::core::convert::Into<crate::unity_engine::animationcurve::AnimationCurve>) -> () {
351 unsafe {
352 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
353 ::unity::il2cpp_call!((::unity::module_base()+0x2c58ff0usize)as*mut u8,();
354(LineRenderer)__receiver,(crate::unity_engine::animationcurve::AnimationCurve)::core::convert::Into::into(value))
355 }
356 }
357 #[doc = "`get_colorGradient()` overload"]
358 fn get_color_gradient(self) -> crate::unity_engine::gradient::Gradient {
359 unsafe {
360 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
361 ::unity::il2cpp_call!((::unity::module_base()+0x2c59090usize)as*mut u8,crate::unity_engine::gradient::Gradient;
362(LineRenderer)__receiver)
363 }
364 }
365 #[doc = "`set_colorGradient(crate::unity_engine::gradient::Gradient)` overload"]
366 fn set_color_gradient(self, value: impl ::core::convert::Into<crate::unity_engine::gradient::Gradient>) -> () {
367 unsafe {
368 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
369 ::unity::il2cpp_call!((::unity::module_base()+0x2c59130usize)as*mut u8,();
370(LineRenderer)__receiver,(crate::unity_engine::gradient::Gradient)::core::convert::Into::into(value))
371 }
372 }
373 #[doc = "`GetWidthCurveCopy()` overload"]
374 fn get_width_curve_copy(self) -> crate::unity_engine::animationcurve::AnimationCurve {
375 unsafe {
376 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
377 ::unity::il2cpp_call!((::unity::module_base()+0x2c58fa0usize)as*mut u8,crate::unity_engine::animationcurve::AnimationCurve;
378(LineRenderer)__receiver)
379 }
380 }
381 #[doc = "`GetColorGradientCopy()` overload"]
382 fn get_color_gradient_copy(self) -> crate::unity_engine::gradient::Gradient {
383 unsafe {
384 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
385 ::unity::il2cpp_call!((::unity::module_base()+0x2c590e0usize)as*mut u8,crate::unity_engine::gradient::Gradient;
386(LineRenderer)__receiver)
387 }
388 }
389 #[doc = "`GetPositions(::unity::Array<crate::unity_engine::vector3::Vector3>)` overload"]
390 fn get_positions(self, positions: impl ::core::convert::Into<::unity::Array<crate::unity_engine::vector3::Vector3>>) -> i32 {
391 unsafe {
392 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
393 ::unity::il2cpp_call!((::unity::module_base()+0x2c591d0usize)as*mut u8,i32;
394(LineRenderer)__receiver,(::unity::Array<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(positions))
395 }
396 }
397 #[doc = "`SetPositions(::unity::Array<crate::unity_engine::vector3::Vector3>)` overload"]
398 fn set_positions(self, positions: impl ::core::convert::Into<::unity::Array<crate::unity_engine::vector3::Vector3>>) -> () {
399 unsafe {
400 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
401 ::unity::il2cpp_call!((::unity::module_base()+0x2c59220usize)as*mut u8,();
402(LineRenderer)__receiver,(::unity::Array<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(positions))
403 }
404 }
405 #[doc = "`SetPositionsWithNativeContainer(::unity::IntPtr, i32)` overload"]
406 fn set_positions_with_native_container(
407 self,
408 positions: impl ::core::convert::Into<::unity::IntPtr>,
409 count: impl ::core::convert::Into<i32>,
410 ) -> () {
411 unsafe {
412 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
413 ::unity::il2cpp_call!((::unity::module_base()+0x2c59320usize)as*mut u8,();
414(LineRenderer)__receiver,(::unity::IntPtr)::core::convert::Into::into(positions),(i32)::core::convert::Into::into(count))
415 }
416 }
417 #[doc = "`GetPositionsWithNativeContainer(::unity::IntPtr, i32)` overload"]
418 fn get_positions_with_native_container(
419 self,
420 positions: impl ::core::convert::Into<::unity::IntPtr>,
421 length: impl ::core::convert::Into<i32>,
422 ) -> i32 {
423 unsafe {
424 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
425 ::unity::il2cpp_call!((::unity::module_base()+0x2c59510usize)as*mut u8,i32;
426(LineRenderer)__receiver,(::unity::IntPtr)::core::convert::Into::into(positions),(i32)::core::convert::Into::into(length))
427 }
428 }
429 #[doc = "`.ctor()` overload"]
430 fn ctor(self) -> () {
431 unsafe {
432 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
433 ::unity::il2cpp_call!((::unity::module_base()+0x2c59650usize)as*mut u8,();
434(LineRenderer)__receiver)
435 }
436 }
437 #[doc = "`get_startColor_Injected(*mutcrate::unity_engine::color::Color)` overload"]
438 fn get_start_color_injected(self) -> crate::unity_engine::color::Color {
439 unsafe {
440 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
441 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
442 ::unity::il2cpp_call!((::unity::module_base()+0x2c58840usize)as*mut u8,();
443(LineRenderer)__receiver,(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr());
444 __out_0.assume_init()
445 }
446 }
447 #[doc = "`set_startColor_Injected(*mutcrate::unity_engine::color::Color)` overload"]
448 fn set_start_color_injected(self) -> crate::unity_engine::color::Color {
449 unsafe {
450 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
451 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
452 ::unity::il2cpp_call!((::unity::module_base()+0x2c58890usize)as*mut u8,();
453(LineRenderer)__receiver,(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr());
454 __out_0.assume_init()
455 }
456 }
457 #[doc = "`get_endColor_Injected(*mutcrate::unity_engine::color::Color)` overload"]
458 fn get_end_color_injected(self) -> crate::unity_engine::color::Color {
459 unsafe {
460 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
461 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
462 ::unity::il2cpp_call!((::unity::module_base()+0x2c58940usize)as*mut u8,();
463(LineRenderer)__receiver,(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr());
464 __out_0.assume_init()
465 }
466 }
467 #[doc = "`set_endColor_Injected(*mutcrate::unity_engine::color::Color)` overload"]
468 fn set_end_color_injected(self) -> crate::unity_engine::color::Color {
469 unsafe {
470 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
471 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
472 ::unity::il2cpp_call!((::unity::module_base()+0x2c58990usize)as*mut u8,();
473(LineRenderer)__receiver,(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr());
474 __out_0.assume_init()
475 }
476 }
477 #[doc = "`SetPosition_Injected(i32, *mutcrate::unity_engine::vector3::Vector3)` overload"]
478 fn set_position_injected(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector3::Vector3 {
479 unsafe {
480 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
481 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
482 ::unity::il2cpp_call!((::unity::module_base()+0x2c58a50usize)as*mut u8,();
483(LineRenderer)__receiver,(i32)::core::convert::Into::into(index),(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr());
484 __out_0.assume_init()
485 }
486 }
487 #[doc = "`GetPosition_Injected(i32, *mutcrate::unity_engine::vector3::Vector3)` overload"]
488 fn get_position_injected(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector3::Vector3 {
489 unsafe {
490 let __receiver = <LineRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
491 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
492 ::unity::il2cpp_call!((::unity::module_base()+0x2c58b20usize)as*mut u8,();
493(LineRenderer)__receiver,(i32)::core::convert::Into::into(index),(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr());
494 __out_0.assume_init()
495 }
496 }
497}
498
499#[cfg(feature = "unity_engine-linerenderer")]
500impl<__T: ILineRenderer> ILineRendererMethods for __T {}
501
502#[cfg(feature = "unity_engine-linerenderer")]
503impl LineRenderer {
504 pub fn set_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
506 }
507
508 pub fn set_colors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
510 }
511
512 pub fn set_vertex_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
514 }
515
516 pub fn get_num_positions_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
518 }
519
520 pub fn set_num_positions_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
522 }
523
524 pub fn get_start_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
525 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
526 }
527
528 pub fn set_start_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
529 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
530 }
531
532 pub fn get_end_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
533 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
534 }
535
536 pub fn set_end_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
537 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
538 }
539
540 pub fn get_width_multiplier_method_info() -> &'static ::unity::il2cpp::MethodInfo {
541 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
542 }
543
544 pub fn set_width_multiplier_method_info() -> &'static ::unity::il2cpp::MethodInfo {
545 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
546 }
547
548 pub fn get_num_corner_vertices_method_info() -> &'static ::unity::il2cpp::MethodInfo {
549 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
550 }
551
552 pub fn set_num_corner_vertices_method_info() -> &'static ::unity::il2cpp::MethodInfo {
553 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
554 }
555
556 pub fn get_num_cap_vertices_method_info() -> &'static ::unity::il2cpp::MethodInfo {
557 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
558 }
559
560 pub fn set_num_cap_vertices_method_info() -> &'static ::unity::il2cpp::MethodInfo {
561 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
562 }
563
564 pub fn get_use_world_space_method_info() -> &'static ::unity::il2cpp::MethodInfo {
565 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
566 }
567
568 pub fn set_use_world_space_method_info() -> &'static ::unity::il2cpp::MethodInfo {
569 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
570 }
571
572 pub fn get_loop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
573 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
574 }
575
576 pub fn set_loop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
577 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
578 }
579
580 pub fn get_start_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
581 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
582 }
583
584 pub fn set_start_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
585 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
586 }
587
588 pub fn get_end_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
589 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
590 }
591
592 pub fn set_end_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
593 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
594 }
595
596 pub fn get_position_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
597 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
598 }
599
600 pub fn set_position_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
601 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
602 }
603
604 pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
605 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
606 }
607
608 pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
609 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
610 }
611
612 pub fn get_shadow_bias_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
614 }
615
616 pub fn set_shadow_bias_method_info() -> &'static ::unity::il2cpp::MethodInfo {
617 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
618 }
619
620 pub fn get_generate_lighting_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
622 }
623
624 pub fn set_generate_lighting_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
625 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
626 }
627
628 pub fn get_texture_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
629 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
630 }
631
632 pub fn set_texture_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
633 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
634 }
635
636 pub fn get_alignment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
637 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
638 }
639
640 pub fn set_alignment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
641 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
642 }
643
644 pub fn simplify_method_info() -> &'static ::unity::il2cpp::MethodInfo {
645 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
646 }
647
648 pub fn bake_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
649 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
650 }
651
652 pub fn bake_mesh_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
653 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
654 }
655
656 pub fn get_width_curve_method_info() -> &'static ::unity::il2cpp::MethodInfo {
657 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
658 }
659
660 pub fn set_width_curve_method_info() -> &'static ::unity::il2cpp::MethodInfo {
661 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
662 }
663
664 pub fn get_color_gradient_method_info() -> &'static ::unity::il2cpp::MethodInfo {
665 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
666 }
667
668 pub fn set_color_gradient_method_info() -> &'static ::unity::il2cpp::MethodInfo {
669 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
670 }
671
672 pub fn get_width_curve_copy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
673 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
674 }
675
676 pub fn get_color_gradient_copy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
677 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
678 }
679
680 pub fn get_positions_method_info() -> &'static ::unity::il2cpp::MethodInfo {
681 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
682 }
683
684 pub fn set_positions_method_info() -> &'static ::unity::il2cpp::MethodInfo {
685 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
686 }
687
688 pub fn set_positions_with_native_container_method_info() -> &'static ::unity::il2cpp::MethodInfo {
689 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
690 }
691
692 pub fn get_positions_with_native_container_method_info() -> &'static ::unity::il2cpp::MethodInfo {
693 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
694 }
695
696 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
697 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[54]
698 }
699
700 pub fn get_start_color_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
701 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[55]
702 }
703
704 pub fn set_start_color_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
705 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[56]
706 }
707
708 pub fn get_end_color_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
709 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[57]
710 }
711
712 pub fn set_end_color_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
713 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[58]
714 }
715
716 pub fn set_position_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
717 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[59]
718 }
719
720 pub fn get_position_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
721 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[60]
722 }
723}
724
725#[cfg(feature = "unity_engine-linerenderer")]
726impl LineRenderer {
727 #[doc = "`.ctor()` — no args"]
728 pub fn new() -> Self {
729 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
730 panic!(
731 "{}
732::{}
733 failed to instantiate",
734 ::core::stringify!(LineRenderer),
735 ::core::stringify!(new),
736 )
737 });
738 <Self as ILineRendererMethods>::ctor(this);
739 this
740 }
741}
742
743#[cfg(feature = "unity_engine-linerenderer")]
744#[doc(hidden)]
745pub mod prelude {
746 pub use super::{ILineRenderer, ILineRendererMethods, LineRenderer};
747 #[cfg(feature = "system-object")]
748 pub use crate::system::object::IObjectMethods;
749 #[cfg(feature = "unity_engine-component")]
750 pub use crate::unity_engine::component::IComponentMethods;
751 #[cfg(feature = "unity_engine-object_2")]
752 pub use crate::unity_engine::object_2::IObject_2Methods;
753 #[cfg(feature = "unity_engine-renderer")]
754 pub use crate::unity_engine::renderer::IRendererMethods;
755 pub use crate::{
756 system::object::IObject,
757 unity_engine::{component::IComponent, object_2::IObject_2, renderer::IRenderer},
758 };
759}