Skip to main content

ICameraSwitcherMethods

Trait ICameraSwitcherMethods 

Source
pub trait ICameraSwitcherMethods: ICameraSwitcher {
    // Provided methods
    fn on_enable(self) { ... }
    fn on_disable(self) { ... }
    fn get_camera_count(self) -> i32 { ... }
    fn get_next_camera(self) -> Camera { ... }
    fn set_camera_index(self, index: impl Into<i32>) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn on_enable(self)

OnEnable() overload

Source

fn on_disable(self)

OnDisable() overload

Source

fn get_camera_count(self) -> i32

GetCameraCount() overload

Source

fn get_next_camera(self) -> Camera

GetNextCamera() overload

Source

fn set_camera_index(self, index: impl Into<i32>)

SetCameraIndex(i32) 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: ICameraSwitcher> ICameraSwitcherMethods for __T

Available on crate feature unity_engine-rendering-cameraswitcher only.