pub trait ICanvasScalerMethods: ICanvasScaler {
Show 29 methods
// Provided methods
fn get_ui_scale_mode(self) -> CanvasScaler_ScaleMode { ... }
fn set_ui_scale_mode(self, value: impl Into<CanvasScaler_ScaleMode>) { ... }
fn get_reference_pixels_per_unit(self) -> f32 { ... }
fn set_reference_pixels_per_unit(self, value: impl Into<f32>) { ... }
fn get_scale_factor(self) -> f32 { ... }
fn set_scale_factor(self, value: impl Into<f32>) { ... }
fn get_reference_resolution(self) -> Vector2 { ... }
fn set_reference_resolution(self, value: impl Into<Vector2>) { ... }
fn get_screen_match_mode(self) -> CanvasScaler_ScreenMatchMode { ... }
fn set_screen_match_mode(
self,
value: impl Into<CanvasScaler_ScreenMatchMode>,
) { ... }
fn get_match_width_or_height(self) -> f32 { ... }
fn set_match_width_or_height(self, value: impl Into<f32>) { ... }
fn get_physical_unit(self) -> CanvasScaler_Unit { ... }
fn set_physical_unit(self, value: impl Into<CanvasScaler_Unit>) { ... }
fn get_fallback_screen_dpi(self) -> f32 { ... }
fn set_fallback_screen_dpi(self, value: impl Into<f32>) { ... }
fn get_default_sprite_dpi(self) -> f32 { ... }
fn set_default_sprite_dpi(self, value: impl Into<f32>) { ... }
fn get_dynamic_pixels_per_unit(self) -> f32 { ... }
fn set_dynamic_pixels_per_unit(self, value: impl Into<f32>) { ... }
fn ctor(self) { ... }
fn on_enable(self) { ... }
fn canvas_pre_will_render_canvases(self) { ... }
fn on_disable(self) { ... }
fn handle(self) { ... }
fn handle_world_canvas(self) { ... }
fn handle_constant_pixel_size(self) { ... }
fn handle_scale_with_screen_size(self) { ... }
fn handle_constant_physical_size(self) { ... }
}Provided Methods§
Sourcefn get_ui_scale_mode(self) -> CanvasScaler_ScaleMode
fn get_ui_scale_mode(self) -> CanvasScaler_ScaleMode
get_uiScaleMode() overload
Sourcefn set_ui_scale_mode(self, value: impl Into<CanvasScaler_ScaleMode>)
fn set_ui_scale_mode(self, value: impl Into<CanvasScaler_ScaleMode>)
set_uiScaleMode(crate::unity_engine::ui::canvasscaler::CanvasScaler_ScaleMode) overload
Sourcefn get_reference_pixels_per_unit(self) -> f32
fn get_reference_pixels_per_unit(self) -> f32
get_referencePixelsPerUnit() overload
Sourcefn set_reference_pixels_per_unit(self, value: impl Into<f32>)
fn set_reference_pixels_per_unit(self, value: impl Into<f32>)
set_referencePixelsPerUnit(f32) overload
Sourcefn get_scale_factor(self) -> f32
fn get_scale_factor(self) -> f32
get_scaleFactor() overload
Sourcefn set_scale_factor(self, value: impl Into<f32>)
fn set_scale_factor(self, value: impl Into<f32>)
set_scaleFactor(f32) overload
Sourcefn get_reference_resolution(self) -> Vector2
fn get_reference_resolution(self) -> Vector2
get_referenceResolution() overload
Sourcefn set_reference_resolution(self, value: impl Into<Vector2>)
fn set_reference_resolution(self, value: impl Into<Vector2>)
set_referenceResolution(crate::unity_engine::vector2::Vector2) overload
Sourcefn get_screen_match_mode(self) -> CanvasScaler_ScreenMatchMode
fn get_screen_match_mode(self) -> CanvasScaler_ScreenMatchMode
get_screenMatchMode() overload
Sourcefn set_screen_match_mode(self, value: impl Into<CanvasScaler_ScreenMatchMode>)
fn set_screen_match_mode(self, value: impl Into<CanvasScaler_ScreenMatchMode>)
set_screenMatchMode(crate::unity_engine::ui::canvasscaler::CanvasScaler_ScreenMatchMode) overload
Sourcefn get_match_width_or_height(self) -> f32
fn get_match_width_or_height(self) -> f32
get_matchWidthOrHeight() overload
Sourcefn set_match_width_or_height(self, value: impl Into<f32>)
fn set_match_width_or_height(self, value: impl Into<f32>)
set_matchWidthOrHeight(f32) overload
Sourcefn get_physical_unit(self) -> CanvasScaler_Unit
fn get_physical_unit(self) -> CanvasScaler_Unit
get_physicalUnit() overload
Sourcefn set_physical_unit(self, value: impl Into<CanvasScaler_Unit>)
fn set_physical_unit(self, value: impl Into<CanvasScaler_Unit>)
set_physicalUnit(crate::unity_engine::ui::canvasscaler::CanvasScaler_Unit) overload
Sourcefn get_fallback_screen_dpi(self) -> f32
fn get_fallback_screen_dpi(self) -> f32
get_fallbackScreenDPI() overload
Sourcefn set_fallback_screen_dpi(self, value: impl Into<f32>)
fn set_fallback_screen_dpi(self, value: impl Into<f32>)
set_fallbackScreenDPI(f32) overload
Sourcefn get_default_sprite_dpi(self) -> f32
fn get_default_sprite_dpi(self) -> f32
get_defaultSpriteDPI() overload
Sourcefn set_default_sprite_dpi(self, value: impl Into<f32>)
fn set_default_sprite_dpi(self, value: impl Into<f32>)
set_defaultSpriteDPI(f32) overload
Sourcefn get_dynamic_pixels_per_unit(self) -> f32
fn get_dynamic_pixels_per_unit(self) -> f32
get_dynamicPixelsPerUnit() overload
Sourcefn set_dynamic_pixels_per_unit(self, value: impl Into<f32>)
fn set_dynamic_pixels_per_unit(self, value: impl Into<f32>)
set_dynamicPixelsPerUnit(f32) overload
Sourcefn canvas_pre_will_render_canvases(self)
fn canvas_pre_will_render_canvases(self)
Canvas_preWillRenderCanvases() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn handle_world_canvas(self)
fn handle_world_canvas(self)
HandleWorldCanvas() overload
Sourcefn handle_constant_pixel_size(self)
fn handle_constant_pixel_size(self)
HandleConstantPixelSize() overload
Sourcefn handle_scale_with_screen_size(self)
fn handle_scale_with_screen_size(self)
HandleScaleWithScreenSize() overload
Sourcefn handle_constant_physical_size(self)
fn handle_constant_physical_size(self)
HandleConstantPhysicalSize() 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: ICanvasScaler> ICanvasScalerMethods for __T
unity_engine-ui-canvasscaler only.