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§
Sourcefn get_assets_ppu(self) -> i32
fn get_assets_ppu(self) -> i32
get_assetsPPU() overload
Sourcefn set_assets_ppu(self, value: impl Into<i32>)
fn set_assets_ppu(self, value: impl Into<i32>)
set_assetsPPU(i32) overload
Sourcefn get_ref_resolution_x(self) -> i32
fn get_ref_resolution_x(self) -> i32
get_refResolutionX() overload
Sourcefn set_ref_resolution_x(self, value: impl Into<i32>)
fn set_ref_resolution_x(self, value: impl Into<i32>)
set_refResolutionX(i32) overload
Sourcefn get_ref_resolution_y(self) -> i32
fn get_ref_resolution_y(self) -> i32
get_refResolutionY() overload
Sourcefn set_ref_resolution_y(self, value: impl Into<i32>)
fn set_ref_resolution_y(self, value: impl Into<i32>)
set_refResolutionY(i32) overload
Sourcefn get_upscale_rt(self) -> bool
fn get_upscale_rt(self) -> bool
get_upscaleRT() overload
Sourcefn set_upscale_rt(self, value: impl Into<bool>)
fn set_upscale_rt(self, value: impl Into<bool>)
set_upscaleRT(bool) overload
Sourcefn get_pixel_snapping(self) -> bool
fn get_pixel_snapping(self) -> bool
get_pixelSnapping() overload
Sourcefn set_pixel_snapping(self, value: impl Into<bool>)
fn set_pixel_snapping(self, value: impl Into<bool>)
set_pixelSnapping(bool) overload
Sourcefn get_crop_frame_x(self) -> bool
fn get_crop_frame_x(self) -> bool
get_cropFrameX() overload
Sourcefn set_crop_frame_x(self, value: impl Into<bool>)
fn set_crop_frame_x(self, value: impl Into<bool>)
set_cropFrameX(bool) overload
Sourcefn get_crop_frame_y(self) -> bool
fn get_crop_frame_y(self) -> bool
get_cropFrameY() overload
Sourcefn set_crop_frame_y(self, value: impl Into<bool>)
fn set_crop_frame_y(self, value: impl Into<bool>)
set_cropFrameY(bool) overload
Sourcefn get_stretch_fill(self) -> bool
fn get_stretch_fill(self) -> bool
get_stretchFill() overload
Sourcefn set_stretch_fill(self, value: impl Into<bool>)
fn set_stretch_fill(self, value: impl Into<bool>)
set_stretchFill(bool) overload
Sourcefn get_pixel_ratio(self) -> i32
fn get_pixel_ratio(self) -> i32
get_pixelRatio() overload
Sourcefn round_to_pixel(self, position: impl Into<Vector3>) -> Vector3
fn round_to_pixel(self, position: impl Into<Vector3>) -> Vector3
RoundToPixel(crate::unity_engine::vector3::Vector3) overload
Sourcefn correct_cinemachine_ortho_size(
self,
target_ortho_size: impl Into<f32>,
) -> f32
fn correct_cinemachine_ortho_size( self, target_ortho_size: impl Into<f32>, ) -> f32
CorrectCinemachineOrthoSize(f32) overload
Sourcefn get_is_running(self) -> bool
fn get_is_running(self) -> bool
get_isRunning() overload
Sourcefn get_final_blit_filter_mode(self) -> FilterMode
fn get_final_blit_filter_mode(self) -> FilterMode
get_finalBlitFilterMode() overload
Sourcefn get_offscreen_rt_size(self) -> Vector2Int
fn get_offscreen_rt_size(self) -> Vector2Int
get_offscreenRTSize() overload
Sourcefn pixel_snap(self)
fn pixel_snap(self)
PixelSnap() overload
Sourcefn on_begin_camera_rendering(
self,
context: impl Into<ScriptableRenderContext>,
camera: impl Into<Camera>,
)
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
Sourcefn on_end_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>, )
OnEndCameraRendering(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, crate::unity_engine::camera::Camera) overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() 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: IPixelPerfectCamera> IPixelPerfectCameraMethods for __T
unity_engine-experimental-rendering-universal-pixelperfectcamera only.