Skip to main content

IRawImageMethods

Trait IRawImageMethods 

Source
pub trait IRawImageMethods: IRawImage {
    // Provided methods
    fn ctor(self) { ... }
    fn get_main_texture(self) -> Texture { ... }
    fn get_texture(self) -> Texture { ... }
    fn set_texture(self, value: impl Into<Texture>) { ... }
    fn get_uv_rect(self) -> Rect { ... }
    fn set_uv_rect(self, value: impl Into<Rect>) { ... }
    fn set_native_size(self) { ... }
    fn on_populate_mesh(self, vh: impl Into<VertexHelper>) { ... }
    fn on_did_apply_animation_properties(self) { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn get_main_texture(self) -> Texture

get_mainTexture() overload

Source

fn get_texture(self) -> Texture

get_texture() overload

Source

fn set_texture(self, value: impl Into<Texture>)

set_texture(crate::unity_engine::texture::Texture) overload

Source

fn get_uv_rect(self) -> Rect

get_uvRect() overload

Source

fn set_uv_rect(self, value: impl Into<Rect>)

set_uvRect(crate::unity_engine::rect::Rect) overload

Source

fn set_native_size(self)

SetNativeSize() overload

Source

fn on_populate_mesh(self, vh: impl Into<VertexHelper>)

OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper) overload

Source

fn on_did_apply_animation_properties(self)

OnDidApplyAnimationProperties() 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: IRawImage> IRawImageMethods for __T

Available on crate feature unity_engine-ui-rawimage only.