#[repr(C)]pub struct RaycastResult {
pub m_game_object: GameObject,
pub module: BaseRaycaster,
pub distance: f32,
pub index: f32,
pub depth: i32,
pub sorting_layer: i32,
pub sorting_order: i32,
pub world_position: Vector3,
pub world_normal: Vector3,
pub screen_position: Vector2,
pub display_index: i32,
}Expand description
Fields§
§m_game_object: GameObject§module: BaseRaycaster§distance: f32§index: f32§depth: i32§sorting_layer: i32§sorting_order: i32§world_position: Vector3§world_normal: Vector3§screen_position: Vector2§display_index: i32Implementations§
Source§impl RaycastResult
impl RaycastResult
Sourcepub fn get_game_object(&mut self) -> GameObject
pub fn get_game_object(&mut self) -> GameObject
get_gameObject() overload
Sourcepub fn set_game_object(&mut self, value: impl Into<GameObject>)
pub fn set_game_object(&mut self, value: impl Into<GameObject>)
set_gameObject(crate::unity_engine::gameobject::GameObject) overload
Sourcepub fn get_is_valid(&mut self) -> bool
pub fn get_is_valid(&mut self) -> bool
get_isValid() overload
Sourcepub fn to_string(&mut self) -> Il2CppString
pub fn to_string(&mut self) -> Il2CppString
ToString() overload
Source§impl RaycastResult
impl RaycastResult
pub fn get_game_object_method_info() -> &'static MethodInfo
pub fn set_game_object_method_info() -> &'static MethodInfo
pub fn get_is_valid_method_info() -> &'static MethodInfo
pub fn clear_method_info() -> &'static MethodInfo
pub fn to_string_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for RaycastResult
impl ClassIdentity for RaycastResult
Source§impl Clone for RaycastResult
impl Clone for RaycastResult
Source§fn clone(&self) -> RaycastResult
fn clone(&self) -> RaycastResult
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RaycastResult
Auto Trait Implementations§
impl Freeze for RaycastResult
impl RefUnwindSafe for RaycastResult
impl !Send for RaycastResult
impl !Sync for RaycastResult
impl Unpin for RaycastResult
impl UnwindSafe for RaycastResult
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)