Skip to main content

IRectMask2DMethods

Trait IRectMask2DMethods 

Source
pub trait IRectMask2DMethods: IRectMask2D {
Show 18 methods // Provided methods fn get_padding(self) -> Vector4 { ... } fn set_padding(self, value: impl Into<Vector4>) { ... } fn get_softness(self) -> Vector2Int { ... } fn set_softness(self, value: impl Into<Vector2Int>) { ... } fn get_canvas(self) -> Canvas { ... } fn get_canvas_rect(self) -> Rect { ... } fn get_rect_transform(self) -> RectTransform { ... } fn ctor(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_root_canvas_rect(self) -> Rect { ... } fn perform_clipping(self) { ... } fn update_clip_softness(self) { ... } fn add_clippable(self, clippable: impl Into<IClippable>) { ... } fn remove_clippable(self, clippable: impl Into<IClippable>) { ... } fn on_transform_parent_changed(self) { ... } fn on_canvas_hierarchy_changed(self) { ... }
}

Provided Methods§

Source

fn get_padding(self) -> Vector4

get_padding() overload

Source

fn set_padding(self, value: impl Into<Vector4>)

set_padding(crate::unity_engine::vector4::Vector4) overload

Source

fn get_softness(self) -> Vector2Int

get_softness() overload

Source

fn set_softness(self, value: impl Into<Vector2Int>)

set_softness(crate::unity_engine::vector2int::Vector2Int) overload

Source

fn get_canvas(self) -> Canvas

get_Canvas() overload

Source

fn get_canvas_rect(self) -> Rect

get_canvasRect() overload

Source

fn get_rect_transform(self) -> RectTransform

get_rectTransform() overload

Source

fn ctor(self)

.ctor() 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_root_canvas_rect(self) -> Rect

get_rootCanvasRect() overload

Source

fn perform_clipping(self)

PerformClipping() overload

Source

fn update_clip_softness(self)

UpdateClipSoftness() overload

Source

fn add_clippable(self, clippable: impl Into<IClippable>)

AddClippable(crate::unity_engine::ui::iclippable::IClippable) overload

Source

fn remove_clippable(self, clippable: impl Into<IClippable>)

RemoveClippable(crate::unity_engine::ui::iclippable::IClippable) overload

Source

fn on_transform_parent_changed(self)

OnTransformParentChanged() overload

Source

fn on_canvas_hierarchy_changed(self)

OnCanvasHierarchyChanged() 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: IRectMask2D> IRectMask2DMethods for __T

Available on crate feature unity_engine-ui-rectmask2d only.