#[repr(transparent)]pub struct RenderTexture(pub Object);Expand description
UnityEngine.RenderTexture, an off-screen render target.
Tuple Fields§
§0: ObjectImplementations§
Source§impl RenderTexture
impl RenderTexture
pub const ASSEMBLY: &'static str = "UnityEngine.CoreModule"
pub const NAMESPACE: &'static str = "UnityEngine"
pub const NAME: &'static str = "RenderTexture"
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.
Source§impl RenderTexture
impl RenderTexture
Sourcepub fn new(width: i32, height: i32, depth: i32) -> Result<RenderTexture>
pub fn new(width: i32, height: i32, depth: i32) -> Result<RenderTexture>
new RenderTexture(width, height, depth) (depth is the depth-buffer bits,
e.g. 0 for a colour-only target).
Sourcepub fn active() -> Result<Option<RenderTexture>>
pub fn active() -> Result<Option<RenderTexture>>
RenderTexture.active, the target GL and camera drawing goes to.
Sourcepub fn set_active(target: Option<RenderTexture>) -> Result<()>
pub fn set_active(target: Option<RenderTexture>) -> Result<()>
Sets RenderTexture.active. Pass None to restore the back buffer.
Sourcepub fn set_filter_mode(&self, mode: FilterMode) -> Result<()>
pub fn set_filter_mode(&self, mode: FilterMode) -> Result<()>
How the texture is sampled (inherited from Texture).
Trait Implementations§
Source§impl Clone for RenderTexture
impl Clone for RenderTexture
impl Copy for RenderTexture
Source§impl Debug for RenderTexture
impl Debug for RenderTexture
impl Eq for RenderTexture
Source§impl Hash for RenderTexture
impl Hash for RenderTexture
Source§impl Il2CppValue for RenderTexture
impl Il2CppValue for RenderTexture
Source§impl PartialEq for RenderTexture
impl PartialEq for RenderTexture
impl StructuralPartialEq for RenderTexture
Auto Trait Implementations§
impl Forget for RenderTexture
impl Freeze for RenderTexture
impl Move for RenderTexture
impl RefUnwindSafe for RenderTexture
impl Send for RenderTexture
impl Sync for RenderTexture
impl Unpin for RenderTexture
impl UnsafeUnpin for RenderTexture
impl UnwindSafe for RenderTexture
Blanket Implementations§
impl<T> AsId for T
impl<T> AsIdSalt for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more