Skip to main content

IAxisEventDataMethods

Trait IAxisEventDataMethods 

Source
pub trait IAxisEventDataMethods: IAxisEventData {
    // Provided methods
    fn get_move_vector(self) -> Vector2 { ... }
    fn set_move_vector(self, value: impl Into<Vector2>) { ... }
    fn get_move_dir(self) -> MoveDirection { ... }
    fn set_move_dir(self, value: impl Into<MoveDirection>) { ... }
    fn ctor(self, event_system: impl Into<EventSystem>) { ... }
}

Provided Methods§

Source

fn get_move_vector(self) -> Vector2

get_moveVector() overload

Source

fn set_move_vector(self, value: impl Into<Vector2>)

set_moveVector(crate::unity_engine::vector2::Vector2) overload

Source

fn get_move_dir(self) -> MoveDirection

get_moveDir() overload

Source

fn set_move_dir(self, value: impl Into<MoveDirection>)

set_moveDir(crate::unity_engine::event_systems::movedirection::MoveDirection) overload

Source

fn ctor(self, event_system: impl Into<EventSystem>)

.ctor(crate::unity_engine::event_systems::eventsystem::EventSystem) 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: IAxisEventData> IAxisEventDataMethods for __T

Available on crate feature unity_engine-event_systems-axiseventdata only.