Skip to main content

IPixelPerfectCameraMethods

Trait IPixelPerfectCameraMethods 

Source
pub trait IPixelPerfectCameraMethods: IPixelPerfectCamera {
Show 29 methods // Provided methods fn get_assets_ppu(self) -> i32 { ... } fn set_assets_ppu(self, value: impl Into<i32>) { ... } fn get_ref_resolution_x(self) -> i32 { ... } fn set_ref_resolution_x(self, value: impl Into<i32>) { ... } fn get_ref_resolution_y(self) -> i32 { ... } fn set_ref_resolution_y(self, value: impl Into<i32>) { ... } fn get_upscale_rt(self) -> bool { ... } fn set_upscale_rt(self, value: impl Into<bool>) { ... } fn get_pixel_snapping(self) -> bool { ... } fn set_pixel_snapping(self, value: impl Into<bool>) { ... } fn get_crop_frame_x(self) -> bool { ... } fn set_crop_frame_x(self, value: impl Into<bool>) { ... } fn get_crop_frame_y(self) -> bool { ... } fn set_crop_frame_y(self, value: impl Into<bool>) { ... } fn get_stretch_fill(self) -> bool { ... } fn set_stretch_fill(self, value: impl Into<bool>) { ... } fn get_pixel_ratio(self) -> i32 { ... } fn round_to_pixel(self, position: impl Into<Vector3>) -> Vector3 { ... } fn correct_cinemachine_ortho_size( self, target_ortho_size: impl Into<f32>, ) -> f32 { ... } fn get_is_running(self) -> bool { ... } fn get_final_blit_filter_mode(self) -> FilterMode { ... } fn get_offscreen_rt_size(self) -> Vector2Int { ... } fn pixel_snap(self) { ... } fn awake(self) { ... } fn on_begin_camera_rendering( self, context: impl Into<ScriptableRenderContext>, camera: impl Into<Camera>, ) { ... } fn on_end_camera_rendering( self, context: impl Into<ScriptableRenderContext>, camera: impl Into<Camera>, ) { ... } fn on_enable(self) { ... } fn on_disable(self) { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_assets_ppu(self) -> i32

get_assetsPPU() overload

Source

fn set_assets_ppu(self, value: impl Into<i32>)

set_assetsPPU(i32) overload

Source

fn get_ref_resolution_x(self) -> i32

get_refResolutionX() overload

Source

fn set_ref_resolution_x(self, value: impl Into<i32>)

set_refResolutionX(i32) overload

Source

fn get_ref_resolution_y(self) -> i32

get_refResolutionY() overload

Source

fn set_ref_resolution_y(self, value: impl Into<i32>)

set_refResolutionY(i32) overload

Source

fn get_upscale_rt(self) -> bool

get_upscaleRT() overload

Source

fn set_upscale_rt(self, value: impl Into<bool>)

set_upscaleRT(bool) overload

Source

fn get_pixel_snapping(self) -> bool

get_pixelSnapping() overload

Source

fn set_pixel_snapping(self, value: impl Into<bool>)

set_pixelSnapping(bool) overload

Source

fn get_crop_frame_x(self) -> bool

get_cropFrameX() overload

Source

fn set_crop_frame_x(self, value: impl Into<bool>)

set_cropFrameX(bool) overload

Source

fn get_crop_frame_y(self) -> bool

get_cropFrameY() overload

Source

fn set_crop_frame_y(self, value: impl Into<bool>)

set_cropFrameY(bool) overload

Source

fn get_stretch_fill(self) -> bool

get_stretchFill() overload

Source

fn set_stretch_fill(self, value: impl Into<bool>)

set_stretchFill(bool) overload

Source

fn get_pixel_ratio(self) -> i32

get_pixelRatio() overload

Source

fn round_to_pixel(self, position: impl Into<Vector3>) -> Vector3

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

Source

fn correct_cinemachine_ortho_size( self, target_ortho_size: impl Into<f32>, ) -> f32

CorrectCinemachineOrthoSize(f32) overload

Source

fn get_is_running(self) -> bool

get_isRunning() overload

Source

fn get_final_blit_filter_mode(self) -> FilterMode

get_finalBlitFilterMode() overload

Source

fn get_offscreen_rt_size(self) -> Vector2Int

get_offscreenRTSize() overload

Source

fn pixel_snap(self)

PixelSnap() overload

Source

fn awake(self)

Awake() overload

Source

fn on_begin_camera_rendering( self, context: impl Into<ScriptableRenderContext>, camera: impl Into<Camera>, )

OnBeginCameraRendering(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, crate::unity_engine::camera::Camera) overload

Source

fn on_end_camera_rendering( self, context: impl Into<ScriptableRenderContext>, camera: impl Into<Camera>, )

OnEndCameraRendering(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, crate::unity_engine::camera::Camera) overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn on_disable(self)

OnDisable() 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: IPixelPerfectCamera> IPixelPerfectCameraMethods for __T

Available on crate feature unity_engine-experimental-rendering-universal-pixelperfectcamera only.