Skip to main content

IBaseEventDataMethods

Trait IBaseEventDataMethods 

Source
pub trait IBaseEventDataMethods: IBaseEventData {
    // Provided methods
    fn ctor(self, event_system: impl Into<EventSystem>) { ... }
    fn get_current_input_module(self) -> BaseInputModule { ... }
    fn get_selected_object(self) -> GameObject { ... }
    fn set_selected_object(self, value: impl Into<GameObject>) { ... }
}

Provided Methods§

Source

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

.ctor(crate::unity_engine::event_systems::eventsystem::EventSystem) overload

Source

fn get_current_input_module(self) -> BaseInputModule

get_currentInputModule() overload

Source

fn get_selected_object(self) -> GameObject

get_selectedObject() overload

Source

fn set_selected_object(self, value: impl Into<GameObject>)

set_selectedObject(crate::unity_engine::gameobject::GameObject) 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: IBaseEventData> IBaseEventDataMethods for __T

Available on crate feature unity_engine-event_systems-baseeventdata only.