Skip to main content

engage/generated/unity_engine/event_systems/
raycastresult.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-event_systems-raycastresult-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/raycastresult/RaycastResult.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct RaycastResult {
17        pub m_game_object: crate::unity_engine::gameobject::GameObject,
18        pub module: crate::unity_engine::event_systems::baseraycaster::BaseRaycaster,
19        pub distance: f32,
20        pub index: f32,
21        pub depth: i32,
22        pub sorting_layer: i32,
23        pub sorting_order: i32,
24        pub world_position: crate::unity_engine::vector3::Vector3,
25        pub world_normal: crate::unity_engine::vector3::Vector3,
26        pub screen_position: crate::unity_engine::vector2::Vector2,
27        pub display_index: i32,
28    }
29    impl ::unity::ClassIdentity for RaycastResult {
30        const NAME: &'static str = "RaycastResult";
31        const NAMESPACE: &'static str = "UnityEngine.EventSystems";
32
33        fn class() -> ::unity::Class {
34            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36        }
37    }
38    impl ::unity::IlType for RaycastResult {
39        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41        }
42    }
43}
44
45#[cfg(feature = "unity_engine-event_systems-raycastresult-types")]
46pub use __types::*;
47
48#[cfg(feature = "unity_engine-event_systems-raycastresult")]
49impl RaycastResult {
50    #[doc = "`get_gameObject()` overload"]
51    pub fn get_game_object(&mut self) -> crate::unity_engine::gameobject::GameObject {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x37222c0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
54(*mut RaycastResult)self as*mut RaycastResult)
55        }
56    }
57
58    #[doc = "`set_gameObject(crate::unity_engine::gameobject::GameObject)` overload"]
59    pub fn set_game_object(&mut self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x37222d0usize)as*mut u8,();
62(*mut RaycastResult)self as*mut RaycastResult,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
63        }
64    }
65
66    #[doc = "`get_isValid()` overload"]
67    pub fn get_is_valid(&mut self) -> bool {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x37222e0usize)as*mut u8,bool;
70(*mut RaycastResult)self as*mut RaycastResult)
71        }
72    }
73
74    #[doc = "`Clear()` overload"]
75    pub fn clear(&mut self) -> () {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x37223a0usize)as*mut u8,();
78(*mut RaycastResult)self as*mut RaycastResult)
79        }
80    }
81
82    #[doc = "`ToString()` overload"]
83    pub fn to_string(&mut self) -> ::unity::Il2CppString {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x371fa90usize)as*mut u8, ::unity::Il2CppString;
86(*mut RaycastResult)self as*mut RaycastResult)
87        }
88    }
89}
90
91#[cfg(feature = "unity_engine-event_systems-raycastresult")]
92impl RaycastResult {
93    pub fn get_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
95    }
96
97    pub fn set_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
99    }
100
101    pub fn get_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
103    }
104
105    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
107    }
108
109    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
111    }
112}
113
114#[cfg(feature = "unity_engine-event_systems-raycastresult")]
115#[doc(hidden)]
116pub mod prelude {
117    pub use super::RaycastResult;
118    #[cfg(feature = "system-object")]
119    pub use crate::system::object::IObjectMethods;
120    #[cfg(feature = "system-valuetype")]
121    pub use crate::system::valuetype::IValueTypeMethods;
122    pub use crate::system::{object::IObject, valuetype::IValueType};
123}