Skip to main content

engage/generated/unity_engine/
meshrenderer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-meshrenderer-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/meshrenderer/MeshRenderer.md"))]
18    #[::unity::class(namespace = "UnityEngine", name = "MeshRenderer")]
19    #[parent(crate::unity_engine::renderer::Renderer)]
20    pub struct MeshRenderer {}
21}
22
23#[cfg(feature = "unity_engine-meshrenderer-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-meshrenderer")]
27pub trait IMeshRendererMethods: IMeshRenderer {
28    #[doc = "`DontStripMeshRenderer()` overload"]
29    fn dont_strip_mesh_renderer(self) -> () {
30        unsafe {
31            let __receiver = <MeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x32ecd30usize)as*mut u8,();
33(MeshRenderer)__receiver)
34        }
35    }
36    #[doc = "`get_additionalVertexStreams()` overload"]
37    fn get_additional_vertex_streams(self) -> crate::unity_engine::mesh::Mesh {
38        unsafe {
39            let __receiver = <MeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x32ecd40usize)as*mut u8,crate::unity_engine::mesh::Mesh;
41(MeshRenderer)__receiver)
42        }
43    }
44    #[doc = "`set_additionalVertexStreams(crate::unity_engine::mesh::Mesh)` overload"]
45    fn set_additional_vertex_streams(self, value: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
46        unsafe {
47            let __receiver = <MeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x32ecd90usize)as*mut u8,();
49(MeshRenderer)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(value))
50        }
51    }
52    #[doc = "`get_enlightenVertexStream()` overload"]
53    fn get_enlighten_vertex_stream(self) -> crate::unity_engine::mesh::Mesh {
54        unsafe {
55            let __receiver = <MeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x32ecde0usize)as*mut u8,crate::unity_engine::mesh::Mesh;
57(MeshRenderer)__receiver)
58        }
59    }
60    #[doc = "`set_enlightenVertexStream(crate::unity_engine::mesh::Mesh)` overload"]
61    fn set_enlighten_vertex_stream(self, value: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
62        unsafe {
63            let __receiver = <MeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x32ece30usize)as*mut u8,();
65(MeshRenderer)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(value))
66        }
67    }
68    #[doc = "`get_subMeshStartIndex()` overload"]
69    fn get_sub_mesh_start_index(self) -> i32 {
70        unsafe {
71            let __receiver = <MeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x32ece80usize)as*mut u8,i32;
73(MeshRenderer)__receiver)
74        }
75    }
76    #[doc = "`.ctor()` overload"]
77    fn ctor(self) -> () {
78        unsafe {
79            let __receiver = <MeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x32eced0usize)as*mut u8,();
81(MeshRenderer)__receiver)
82        }
83    }
84}
85
86#[cfg(feature = "unity_engine-meshrenderer")]
87impl<__T: IMeshRenderer> IMeshRendererMethods for __T {}
88
89#[cfg(feature = "unity_engine-meshrenderer")]
90impl MeshRenderer {
91    pub fn dont_strip_mesh_renderer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
93    }
94
95    pub fn get_additional_vertex_streams_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
97    }
98
99    pub fn set_additional_vertex_streams_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
101    }
102
103    pub fn get_enlighten_vertex_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
105    }
106
107    pub fn set_enlighten_vertex_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
109    }
110
111    pub fn get_sub_mesh_start_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
113    }
114
115    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
117    }
118}
119
120#[cfg(feature = "unity_engine-meshrenderer")]
121impl MeshRenderer {
122    #[doc = "`.ctor()` — no args"]
123    pub fn new() -> Self {
124        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
125            panic!(
126                "{}
127::{}
128 failed to instantiate",
129                ::core::stringify!(MeshRenderer),
130                ::core::stringify!(new),
131            )
132        });
133        <Self as IMeshRendererMethods>::ctor(this);
134        this
135    }
136}
137
138#[cfg(feature = "unity_engine-meshrenderer")]
139#[doc(hidden)]
140pub mod prelude {
141    pub use super::{IMeshRenderer, IMeshRendererMethods, MeshRenderer};
142    #[cfg(feature = "system-object")]
143    pub use crate::system::object::IObjectMethods;
144    #[cfg(feature = "unity_engine-component")]
145    pub use crate::unity_engine::component::IComponentMethods;
146    #[cfg(feature = "unity_engine-object_2")]
147    pub use crate::unity_engine::object_2::IObject_2Methods;
148    #[cfg(feature = "unity_engine-renderer")]
149    pub use crate::unity_engine::renderer::IRendererMethods;
150    pub use crate::{
151        system::object::IObject,
152        unity_engine::{component::IComponent, object_2::IObject_2, renderer::IRenderer},
153    };
154}