pub trait IMaskMethods: IMask {
// Provided methods
fn get_rect_transform(self) -> RectTransform { ... }
fn get_show_mask_graphic(self) -> bool { ... }
fn set_show_mask_graphic(self, value: impl Into<bool>) { ... }
fn get_graphic(self) -> Graphic { ... }
fn ctor(self) { ... }
fn mask_enabled(self) -> bool { ... }
fn on_sibling_graphic_enabled_disabled(self) { ... }
fn on_enable(self) { ... }
fn on_disable(self) { ... }
fn is_raycast_location_valid(
self,
sp: impl Into<Vector2>,
event_camera: impl Into<Camera>,
) -> bool { ... }
fn get_modified_material(
self,
base_material: impl Into<Material>,
) -> Material { ... }
}Provided Methods§
Sourcefn get_rect_transform(self) -> RectTransform
fn get_rect_transform(self) -> RectTransform
get_rectTransform() overload
Sourcefn get_show_mask_graphic(self) -> bool
fn get_show_mask_graphic(self) -> bool
get_showMaskGraphic() overload
Sourcefn set_show_mask_graphic(self, value: impl Into<bool>)
fn set_show_mask_graphic(self, value: impl Into<bool>)
set_showMaskGraphic(bool) overload
Sourcefn get_graphic(self) -> Graphic
fn get_graphic(self) -> Graphic
get_graphic() overload
Sourcefn mask_enabled(self) -> bool
fn mask_enabled(self) -> bool
MaskEnabled() overload
Sourcefn on_sibling_graphic_enabled_disabled(self)
fn on_sibling_graphic_enabled_disabled(self)
OnSiblingGraphicEnabledDisabled() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn is_raycast_location_valid(
self,
sp: impl Into<Vector2>,
event_camera: impl Into<Camera>,
) -> bool
fn is_raycast_location_valid( self, sp: impl Into<Vector2>, event_camera: impl Into<Camera>, ) -> bool
IsRaycastLocationValid(crate::unity_engine::vector2::Vector2, crate::unity_engine::camera::Camera) overload
Sourcefn get_modified_material(self, base_material: impl Into<Material>) -> Material
fn get_modified_material(self, base_material: impl Into<Material>) -> Material
GetModifiedMaterial(crate::unity_engine::material::Material) 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: IMask> IMaskMethods for __T
Available on crate feature
unity_engine-ui-mask only.