Skip to main content

IMapCameraMethods

Trait IMapCameraMethods 

Source
pub trait IMapCameraMethods: IMapCamera {
    // Provided methods
    fn get_version(self) -> i32 { ... }
    fn on_serialize(self, stream: impl Into<Stream_2>) { ... }
    fn on_deserialize(
        self,
        stream: impl Into<Stream_2>,
        version: impl Into<i32>,
    ) { ... }
    fn on_tick(self) { ... }
    fn on_update(self) { ... }
    fn commit(self, camera: impl Into<Camera>) { ... }
    fn get_param_time(self, name: impl Into<Il2CppString>) -> f32 { ... }
    fn set_position_impl(self, pos: impl Into<Vector3>, speed: impl Into<f32>) { ... }
    fn set_rotation_impl(self, rot: impl Into<Vector3>) { ... }
    fn set_distance_impl(self, distance: impl Into<f32>) { ... }
    fn instant_impl(self, camera: impl Into<Camera>) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_version(self) -> i32

get_Version() overload

Source

fn on_serialize(self, stream: impl Into<Stream_2>)

OnSerialize(crate::app::stream_2::Stream_2) overload

Source

fn on_deserialize(self, stream: impl Into<Stream_2>, version: impl Into<i32>)

OnDeserialize(crate::app::stream_2::Stream_2, i32) overload

Source

fn on_tick(self)

OnTick() overload

Source

fn on_update(self)

OnUpdate() overload

Source

fn commit(self, camera: impl Into<Camera>)

Commit(crate::unity_engine::camera::Camera) overload

Source

fn get_param_time(self, name: impl Into<Il2CppString>) -> f32

GetParamTime(::unity::Il2CppString) overload

Source

fn set_position_impl(self, pos: impl Into<Vector3>, speed: impl Into<f32>)

SetPositionImpl(crate::unity_engine::vector3::Vector3, f32) overload

Source

fn set_rotation_impl(self, rot: impl Into<Vector3>)

SetRotationImpl(crate::unity_engine::vector3::Vector3) overload

Source

fn set_distance_impl(self, distance: impl Into<f32>)

SetDistanceImpl(f32) overload

Source

fn instant_impl(self, camera: impl Into<Camera>)

InstantImpl(crate::unity_engine::camera::Camera) 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: IMapCamera> IMapCameraMethods for __T

Available on crate feature app-mapcamera only.