Skip to main content

ICanvasGroupMethods

Trait ICanvasGroupMethods 

Source
pub trait ICanvasGroupMethods: ICanvasGroup {
    // Provided methods
    fn get_alpha(self) -> f32 { ... }
    fn set_alpha(self, value: impl Into<f32>) { ... }
    fn get_interactable(self) -> bool { ... }
    fn set_interactable(self, value: impl Into<bool>) { ... }
    fn get_blocks_raycasts(self) -> bool { ... }
    fn set_blocks_raycasts(self, value: impl Into<bool>) { ... }
    fn get_ignore_parent_groups(self) -> bool { ... }
    fn set_ignore_parent_groups(self, value: impl Into<bool>) { ... }
    fn is_raycast_location_valid(
        self,
        sp: impl Into<Vector2>,
        event_camera: impl Into<Camera>,
    ) -> bool { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_alpha(self) -> f32

get_alpha() overload

Source

fn set_alpha(self, value: impl Into<f32>)

set_alpha(f32) overload

Source

fn get_interactable(self) -> bool

get_interactable() overload

Source

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

set_interactable(bool) overload

Source

fn get_blocks_raycasts(self) -> bool

get_blocksRaycasts() overload

Source

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

set_blocksRaycasts(bool) overload

Source

fn get_ignore_parent_groups(self) -> bool

get_ignoreParentGroups() overload

Source

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

set_ignoreParentGroups(bool) 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 ctor(self)

.ctor() 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: ICanvasGroup> ICanvasGroupMethods for __T

Available on crate feature unity_engine-canvasgroup only.