Skip to main content

IMousePositionDebugMethods

Trait IMousePositionDebugMethods 

Source
pub trait IMousePositionDebugMethods: IMousePositionDebug {
    // Provided methods
    fn build(self) { ... }
    fn cleanup(self) { ... }
    fn get_mouse_position(
        self,
        screen_height: impl Into<f32>,
        scene_view: impl Into<bool>,
    ) -> Vector2 { ... }
    fn get_input_mouse_position(self) -> Vector2 { ... }
    fn get_mouse_click_position(self, screen_height: impl Into<f32>) -> Vector2 { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn build(self)

Build() overload

Source

fn cleanup(self)

Cleanup() overload

Source

fn get_mouse_position( self, screen_height: impl Into<f32>, scene_view: impl Into<bool>, ) -> Vector2

GetMousePosition(f32, bool) overload

Source

fn get_input_mouse_position(self) -> Vector2

GetInputMousePosition() overload

Source

fn get_mouse_click_position(self, screen_height: impl Into<f32>) -> Vector2

GetMouseClickPosition(f32) overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IMousePositionDebug> IMousePositionDebugMethods for __T

Available on crate feature unity_engine-rendering-mousepositiondebug only.