#[repr(transparent)]pub struct RawImage(pub Object);Expand description
UnityEngine.UI.RawImage, a UI element that draws a raw Texture2D or
RenderTexture.
Tuple Fields§
§0: ObjectImplementations§
Source§impl RawImage
impl RawImage
pub const ASSEMBLY: &'static str = "UnityEngine.UI"
pub const NAMESPACE: &'static str = "UnityEngine.UI"
pub const NAME: &'static str = "RawImage"
pub fn object(&self) -> Object
pub fn is_null(&self) -> bool
pub fn name(&self) -> Result<String>
pub fn set_name(&self, name: &str) -> Result<()>
Sourcepub fn dont_destroy_on_load(&self) -> Result<()>
pub fn dont_destroy_on_load(&self) -> Result<()>
Keeps the object when a new scene loads. Only works for GameObjects;
for assets (Material, Texture2D) use set_hide_flags.
Sourcepub fn set_hide_flags(&self, flags: HideFlags) -> Result<()>
pub fn set_hide_flags(&self, flags: HideFlags) -> Result<()>
Sets the object’s HideFlags. HideFlags::HIDE_AND_DONT_SAVE keeps a
runtime-created asset from being unloaded on scene load.
Trait Implementations§
Source§impl ComponentType for RawImage
impl ComponentType for RawImage
const ASSEMBLY: &'static str = "UnityEngine.UI"
const NAMESPACE: &'static str = "UnityEngine.UI"
const NAME: &'static str = "RawImage"
fn from_object(object: Object) -> Self
fn object(&self) -> Object
fn game_object(&self) -> Result<GameObject>
fn transform(&self) -> Result<Transform>
Source§fn get_component<U: ComponentType>(&self) -> Result<Option<U>>
fn get_component<U: ComponentType>(&self) -> Result<Option<U>>
GetComponent<U>() on this component’s game object, or None if absent.Source§fn is_enabled(&self) -> Result<bool>
fn is_enabled(&self) -> Result<bool>
Whether the component is enabled. For
Behaviour-derived components
(MonoBehaviour, Canvas, …); meaningless on a plain Transform.fn set_enabled(&self, enabled: bool) -> Result<()>
impl Copy for RawImage
impl Eq for RawImage
Source§impl Il2CppValue for RawImage
impl Il2CppValue for RawImage
impl StructuralPartialEq for RawImage
Auto Trait Implementations§
impl Freeze for RawImage
impl RefUnwindSafe for RawImage
impl Send for RawImage
impl Sync for RawImage
impl Unpin for RawImage
impl UnsafeUnpin for RawImage
impl UnwindSafe for RawImage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more