Skip to main content

IWaterV2Methods

Trait IWaterV2Methods 

Source
pub trait IWaterV2Methods: IWaterV2 {
    // Provided methods
    fn on_will_render_object(self) { ... }
    fn on_disable(self) { ... }
    fn update(self) { ... }
    fn update_camera_modes(
        self,
        src: impl Into<Camera>,
        dest: impl Into<Camera>,
    ) { ... }
    fn create_water_objects(
        self,
        current_camera: impl Into<Camera>,
    ) -> (Camera, Camera) { ... }
    fn get_water_mode(self) -> WaterV2_WaterMode { ... }
    fn find_hardware_water_support(self) -> WaterV2_WaterMode { ... }
    fn camera_space_plane(
        self,
        cam: impl Into<Camera>,
        pos: impl Into<Vector3>,
        normal: impl Into<Vector3>,
        side_sign: impl Into<f32>,
    ) -> Vector4 { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn on_will_render_object(self)

OnWillRenderObject() overload

Source

fn on_disable(self)

OnDisable() overload

Source

fn update(self)

Update() overload

Source

fn update_camera_modes(self, src: impl Into<Camera>, dest: impl Into<Camera>)

UpdateCameraModes(crate::unity_engine::camera::Camera, crate::unity_engine::camera::Camera) overload

Source

fn create_water_objects( self, current_camera: impl Into<Camera>, ) -> (Camera, Camera)

CreateWaterObjects(crate::unity_engine::camera::Camera, *mutcrate::unity_engine::camera::Camera, *mutcrate::unity_engine::camera::Camera) overload

Source

fn get_water_mode(self) -> WaterV2_WaterMode

GetWaterMode() overload

Source

fn find_hardware_water_support(self) -> WaterV2_WaterMode

FindHardwareWaterSupport() overload

Source

fn camera_space_plane( self, cam: impl Into<Camera>, pos: impl Into<Vector3>, normal: impl Into<Vector3>, side_sign: impl Into<f32>, ) -> Vector4

CameraSpacePlane(crate::unity_engine::camera::Camera, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32) 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: IWaterV2> IWaterV2Methods for __T

Available on crate feature app-water-waterv2 only.