Skip to main content

IMaskMethods

Trait IMaskMethods 

Source
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§

Source

fn get_rect_transform(self) -> RectTransform

get_rectTransform() overload

Source

fn get_show_mask_graphic(self) -> bool

get_showMaskGraphic() overload

Source

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

set_showMaskGraphic(bool) overload

Source

fn get_graphic(self) -> Graphic

get_graphic() overload

Source

fn ctor(self)

.ctor() overload

Source

fn mask_enabled(self) -> bool

MaskEnabled() overload

Source

fn on_sibling_graphic_enabled_disabled(self)

OnSiblingGraphicEnabledDisabled() overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn on_disable(self)

OnDisable() overload

Source

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

Source

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§

Source§

impl<__T: IMask> IMaskMethods for __T

Available on crate feature unity_engine-ui-mask only.