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§
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn get_camera_count(self) -> i32
fn get_camera_count(self) -> i32
GetCameraCount() overload
Sourcefn get_next_camera(self) -> Camera
fn get_next_camera(self) -> Camera
GetNextCamera() overload
Sourcefn set_camera_index(self, index: impl Into<i32>)
fn set_camera_index(self, index: impl Into<i32>)
SetCameraIndex(i32) 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§
impl<__T: ICameraSwitcher> ICameraSwitcherMethods for __T
Available on crate feature
unity_engine-rendering-cameraswitcher only.