engage/generated/unity_engine/rendering/universal/
componentutility.rs1#[cfg(feature = "unity_engine-rendering-universal-componentutility-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/componentutility/ComponentUtility.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "ComponentUtility")]
12 #[parent(crate::system::object::Object)]
13 pub struct ComponentUtility {}
14}
15
16#[cfg(feature = "unity_engine-rendering-universal-componentutility-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-rendering-universal-componentutility")]
20impl ComponentUtility {
21 #[doc = "`IsUniversalCamera(crate::unity_engine::camera::Camera)` overload"]
22 pub fn is_universal_camera(camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>) -> bool {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x2a40f10usize)as*mut u8,bool;
25(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera))
26 }
27 }
28
29 #[doc = "`IsUniversalLight(crate::unity_engine::light::Light)` overload"]
30 pub fn is_universal_light(light: impl ::core::convert::Into<crate::unity_engine::light::Light>) -> bool {
31 unsafe {
32 ::unity::il2cpp_call!((::unity::module_base()+0x2a40fb0usize)as*mut u8,bool;
33(crate::unity_engine::light::Light)::core::convert::Into::into(light))
34 }
35 }
36}
37
38#[cfg(feature = "unity_engine-rendering-universal-componentutility")]
39impl ComponentUtility {
40 pub fn is_universal_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
41 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
42 }
43
44 pub fn is_universal_light_method_info() -> &'static ::unity::il2cpp::MethodInfo {
45 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
46 }
47}
48
49#[cfg(feature = "unity_engine-rendering-universal-componentutility")]
50#[doc(hidden)]
51pub mod prelude {
52 pub use super::{ComponentUtility, IComponentUtility};
53 pub use crate::system::object::IObject;
54 #[cfg(feature = "system-object")]
55 pub use crate::system::object::IObjectMethods;
56}