pub trait IDynamicResolutionHandlerMethods: IDynamicResolutionHandler {
Show 16 methods
// Provided methods
fn get_filter(self) -> DynamicResUpscaleFilter { ... }
fn set_filter(self, value: impl Into<DynamicResUpscaleFilter>) { ... }
fn get_final_viewport(self) -> Vector2Int { ... }
fn set_final_viewport(self, value: impl Into<Vector2Int>) { ... }
fn ctor(self) { ... }
fn process_settings(
self,
settings: impl Into<GlobalDynamicResolutionSettings>,
) { ... }
fn set_current_camera_request(self, camera_request: impl Into<bool>) { ... }
fn update(
self,
settings: impl Into<GlobalDynamicResolutionSettings>,
on_resolution_change: impl Into<Action>,
) { ... }
fn software_dynamic_res_is_enabled(self) -> bool { ... }
fn hardware_dynamic_res_is_enabled(self) -> bool { ... }
fn requests_hardware_dynamic_resolution(self) -> bool { ... }
fn dynamic_resolution_enabled(self) -> bool { ... }
fn force_software_fallback(self) { ... }
fn get_scaled_size(self, size: impl Into<Vector2Int>) -> Vector2Int { ... }
fn get_current_scale(self) -> f32 { ... }
fn get_last_scaled_size(self) -> Vector2Int { ... }
}Provided Methods§
Sourcefn get_filter(self) -> DynamicResUpscaleFilter
fn get_filter(self) -> DynamicResUpscaleFilter
get_filter() overload
Sourcefn set_filter(self, value: impl Into<DynamicResUpscaleFilter>)
fn set_filter(self, value: impl Into<DynamicResUpscaleFilter>)
set_filter(crate::unity_engine::rendering::dynamicresupscalefilter::DynamicResUpscaleFilter) overload
Sourcefn get_final_viewport(self) -> Vector2Int
fn get_final_viewport(self) -> Vector2Int
get_finalViewport() overload
Sourcefn set_final_viewport(self, value: impl Into<Vector2Int>)
fn set_final_viewport(self, value: impl Into<Vector2Int>)
set_finalViewport(crate::unity_engine::vector2int::Vector2Int) overload
Sourcefn process_settings(self, settings: impl Into<GlobalDynamicResolutionSettings>)
fn process_settings(self, settings: impl Into<GlobalDynamicResolutionSettings>)
ProcessSettings(crate::unity_engine::rendering::globaldynamicresolutionsettings::GlobalDynamicResolutionSettings) overload
Sourcefn set_current_camera_request(self, camera_request: impl Into<bool>)
fn set_current_camera_request(self, camera_request: impl Into<bool>)
SetCurrentCameraRequest(bool) overload
Sourcefn update(
self,
settings: impl Into<GlobalDynamicResolutionSettings>,
on_resolution_change: impl Into<Action>,
)
fn update( self, settings: impl Into<GlobalDynamicResolutionSettings>, on_resolution_change: impl Into<Action>, )
Update(crate::unity_engine::rendering::globaldynamicresolutionsettings::GlobalDynamicResolutionSettings, crate::system::action::Action) overload
Sourcefn software_dynamic_res_is_enabled(self) -> bool
fn software_dynamic_res_is_enabled(self) -> bool
SoftwareDynamicResIsEnabled() overload
Sourcefn hardware_dynamic_res_is_enabled(self) -> bool
fn hardware_dynamic_res_is_enabled(self) -> bool
HardwareDynamicResIsEnabled() overload
Sourcefn requests_hardware_dynamic_resolution(self) -> bool
fn requests_hardware_dynamic_resolution(self) -> bool
RequestsHardwareDynamicResolution() overload
Sourcefn dynamic_resolution_enabled(self) -> bool
fn dynamic_resolution_enabled(self) -> bool
DynamicResolutionEnabled() overload
Sourcefn force_software_fallback(self)
fn force_software_fallback(self)
ForceSoftwareFallback() overload
Sourcefn get_scaled_size(self, size: impl Into<Vector2Int>) -> Vector2Int
fn get_scaled_size(self, size: impl Into<Vector2Int>) -> Vector2Int
GetScaledSize(crate::unity_engine::vector2int::Vector2Int) overload
Sourcefn get_current_scale(self) -> f32
fn get_current_scale(self) -> f32
GetCurrentScale() overload
Sourcefn get_last_scaled_size(self) -> Vector2Int
fn get_last_scaled_size(self) -> Vector2Int
GetLastScaledSize() 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: IDynamicResolutionHandler> IDynamicResolutionHandlerMethods for __T
unity_engine-rendering-dynamicresolutionhandler only.