engage/generated/unity_engine/rendering/
tprofilingsampler_1.rs1#[cfg(feature = "unity_engine-rendering-tprofilingsampler_1-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::rendering::profilingsampler::{IProfilingSampler, ProfilingSampler},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/tprofilingsampler_1/TProfilingSampler_1.md"))]
14 #[::unity::class(namespace = "UnityEngine.Rendering", name = "TProfilingSampler`1")]
15 #[parent(crate::unity_engine::rendering::profilingsampler::ProfilingSampler)]
16 #[parent(crate::system::object::Object)]
17 pub struct TProfilingSampler_1<T0: ::unity::ClassIdentity> {
18 #[static_field]
19 #[rename(name = "samples")]
20 pub samples: crate::system::collections::generic::dictionary_2::Dictionary_2<
21 T0,
22 crate::unity_engine::rendering::tprofilingsampler_1::TProfilingSampler_1<T0>,
23 >,
24 }
25}
26
27#[cfg(feature = "unity_engine-rendering-tprofilingsampler_1-types")]
28pub use __types::*;
29
30#[cfg(feature = "unity_engine-rendering-tprofilingsampler_1")]
31#[::unity::methods]
32impl<T0: ::unity::ClassIdentity> TProfilingSampler_1<T0> {
33 #[doc = "`.cctor()` overload"]
34 #[method(name = ".cctor", args = 0)]
35 pub fn cctor() -> ();
36
37 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
38 #[method(name = ".ctor", args = 1)]
39 pub fn ctor(self, name: ::unity::Il2CppString) -> ();
40}
41
42#[cfg(feature = "unity_engine-rendering-tprofilingsampler_1")]
43impl<T0: ::unity::ClassIdentity> TProfilingSampler_1<T0> {
44 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
45 pub fn new(name: ::unity::Il2CppString) -> Self {
46 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
47 panic!(
48 "{}
49::{}
50 failed to instantiate",
51 ::core::stringify!(TProfilingSampler_1),
52 ::core::stringify!(new),
53 )
54 });
55 <Self as ITProfilingSampler_1Methods<T0>>::ctor(this, name);
56 this
57 }
58}
59
60#[cfg(feature = "unity_engine-rendering-tprofilingsampler_1")]
61#[doc(hidden)]
62pub mod prelude {
63 pub use super::{ITProfilingSampler_1, ITProfilingSampler_1Methods, TProfilingSampler_1};
64 #[cfg(feature = "system-object")]
65 pub use crate::system::object::IObjectMethods;
66 #[cfg(feature = "unity_engine-rendering-profilingsampler")]
67 pub use crate::unity_engine::rendering::profilingsampler::IProfilingSamplerMethods;
68 pub use crate::{system::object::IObject, unity_engine::rendering::profilingsampler::IProfilingSampler};
69}