RenderTexture
Texture
RenderTexture

class:/TYPE/UnityEngine.RenderTexture//, can be loaded from an assetbundle using RenderTexture::createfromassetbundle(bundlename,prefabname) /

Parent

Texture

Variables
antialiasing
System.Int32 antialiasing
autogeneratemips
System.Boolean autogeneratemips
bindtexturems
System.Boolean bindtexturems
colorbuffer
readonly UnityEngine.RenderBuffer colorbuffer
depth
System.Int32 depth
depthbuffer
readonly UnityEngine.RenderBuffer depthbuffer
depthstencilformat
UnityEngine.Experimental.Rendering.GraphicsFormat depthstencilformat
descriptor
UnityEngine.RenderTextureDescriptor descriptor
dimension
UnityEngine.Rendering.TextureDimension dimension
enablerandomwrite
System.Boolean enablerandomwrite
format
UnityEngine.RenderTextureFormat format
graphicsformat
UnityEngine.Experimental.Rendering.GraphicsFormat graphicsformat
height
System.Int32 height
ispoweroftwo
System.Boolean ispoweroftwo
memorylessmode
UnityEngine.RenderTextureMemoryless memorylessmode
rendertexture::​active
static UnityEngine.RenderTexture rendertexture::active
srgb
readonly System.Boolean srgb
stencilformat
UnityEngine.Experimental.Rendering.GraphicsFormat stencilformat
usedynamicscale
System.Boolean usedynamicscale
usemipmap
System.Boolean usemipmap
volumedepth
System.Int32 volumedepth
vrusage
UnityEngine.VRTextureUsage vrusage
width
System.Int32 width
Functions
converttoequirect
System.Void ConvertToEquirect(
UnityEngine.RenderTexture equirect,
UnityEngine.Camera.MonoOrStereoscopicEye eye
)

UnityEngine.RenderTexture equirect-no documentation

Parameters
equirect
UnityEngine.RenderTexture

no documentation eye -

Returns

System.Void

create
System.Boolean Create()
Returns

System.Boolean

discardcontents
System.Void DiscardContents(
System.Boolean discardColor,
System.Boolean discardDepth
)

System.Boolean discardColor-no documentation

Parameters
discardColor
System.Boolean

no documentation discardDepth -

Returns

System.Void

discardcontents
System.Void DiscardContents()
Returns

System.Void

generatemips
System.Void GenerateMips()
Returns

System.Void

getnativedepthbufferptr
System.IntPtr GetNativeDepthBufferPtr()
Returns

System.IntPtr

iscreated
System.Boolean IsCreated()
Returns

System.Boolean

release
System.Void Release()
Returns

System.Void

rendertexture::​create
static UnityEngine.RenderTexture Create (
System.Int32 width,
System.Int32 height,
UnityEngine.Experimental.Rendering.GraphicsFormat colorFormat,
UnityEngine.Experimental.Rendering.GraphicsFormat depthStencilFormat
)

Constructor replaces new;

Parameters
width
System.Int32

no description

height
System.Int32

no description

colorFormat
UnityEngine.Experimental.Rendering.GraphicsFormat

no description

depthStencilFormat
UnityEngine.Experimental.Rendering.GraphicsFormat

no description

Returns

UnityEngine.RenderTexture

rendertexture::​create
static UnityEngine.RenderTexture Create (
System.Int32 width,
System.Int32 height,
System.Int32 depth,
UnityEngine.RenderTextureFormat format,
UnityEngine.RenderTextureReadWrite readWrite
)

Constructor replaces new;

Parameters
width
System.Int32

no description

height
System.Int32

no description

depth
System.Int32

no description

format
UnityEngine.RenderTextureFormat

no description

readWrite
UnityEngine.RenderTextureReadWrite

no description

Returns

UnityEngine.RenderTexture

rendertexture::​create
static UnityEngine.RenderTexture Create (
System.Int32 width,
System.Int32 height,
System.Int32 depth,
UnityEngine.RenderTextureFormat format
)

Constructor replaces new;

Parameters
width
System.Int32

no description

height
System.Int32

no description

depth
System.Int32

no description

format
UnityEngine.RenderTextureFormat

no description

Returns

UnityEngine.RenderTexture

rendertexture::​create
static UnityEngine.RenderTexture Create (
System.Int32 width,
System.Int32 height,
System.Int32 depth,
UnityEngine.RenderTextureFormat format,
System.Int32 mipCount
)

Constructor replaces new;

Parameters
width
System.Int32

no description

height
System.Int32

no description

depth
System.Int32

no description

format
UnityEngine.RenderTextureFormat

no description

mipCount
System.Int32

no description

Returns

UnityEngine.RenderTexture

rendertexture::​create
static UnityEngine.RenderTexture Create (
System.Int32 width,
System.Int32 height,
System.Int32 depth
)

Constructor replaces new;

Parameters
width
System.Int32

no description

height
System.Int32

no description

depth
System.Int32

no description

Returns

UnityEngine.RenderTexture

rendertexture::​create
static UnityEngine.RenderTexture Create (
UnityEngine.RenderTextureDescriptor desc
)

Constructor replaces new;

Parameters
desc
UnityEngine.RenderTextureDescriptor

no description

Returns

UnityEngine.RenderTexture

rendertexture::​create
static UnityEngine.RenderTexture Create (
UnityEngine.RenderTexture textureToCopy
)

Constructor replaces new;

Parameters
textureToCopy
UnityEngine.RenderTexture

no description

Returns

UnityEngine.RenderTexture

rendertexture::​create
static UnityEngine.RenderTexture Create (
System.Int32 width,
System.Int32 height,
System.Int32 depth,
UnityEngine.Experimental.Rendering.DefaultFormat format
)

Constructor replaces new;

Parameters
width
System.Int32

no description

height
System.Int32

no description

depth
System.Int32

no description

format
UnityEngine.Experimental.Rendering.DefaultFormat

no description

Returns

UnityEngine.RenderTexture

rendertexture::​create
static UnityEngine.RenderTexture Create (
System.Int32 width,
System.Int32 height,
System.Int32 depth,
UnityEngine.Experimental.Rendering.GraphicsFormat format
)

Constructor replaces new;

Parameters
width
System.Int32

no description

height
System.Int32

no description

depth
System.Int32

no description

format
UnityEngine.Experimental.Rendering.GraphicsFormat

no description

Returns

UnityEngine.RenderTexture

rendertexture::​create
static UnityEngine.RenderTexture Create (
System.Int32 width,
System.Int32 height,
System.Int32 depth,
UnityEngine.Experimental.Rendering.GraphicsFormat format,
System.Int32 mipCount
)

Constructor replaces new;

Parameters
width
System.Int32

no description

height
System.Int32

no description

depth
System.Int32

no description

format
UnityEngine.Experimental.Rendering.GraphicsFormat

no description

mipCount
System.Int32

no description

Returns

UnityEngine.RenderTexture

rendertexture::​create
static UnityEngine.RenderTexture Create (
System.Int32 width,
System.Int32 height,
UnityEngine.Experimental.Rendering.GraphicsFormat colorFormat,
UnityEngine.Experimental.Rendering.GraphicsFormat depthStencilFormat,
System.Int32 mipCount
)

Constructor replaces new;

Parameters
width
System.Int32

no description

height
System.Int32

no description

colorFormat
UnityEngine.Experimental.Rendering.GraphicsFormat

no description

depthStencilFormat
UnityEngine.Experimental.Rendering.GraphicsFormat

no description

mipCount
System.Int32

no description

Returns

UnityEngine.RenderTexture

rendertexture::​fromassetbundle
static UnityEngine.RenderTexture CreateFromAssetBundle(
string bundle,
string objectname
)

Constructor for object from a bundle

Parameters
bundle
string

bundle name

objectname
string

object name with extension

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.Experimental.Rendering.GraphicsFormat format,
System.Int32 antiAliasing
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation

format
UnityEngine.Experimental.Rendering.GraphicsFormat

no documentation antiAliasing -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.Experimental.Rendering.GraphicsFormat format,
System.Int32 antiAliasing,
UnityEngine.RenderTextureMemoryless memorylessMode
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation

format
UnityEngine.Experimental.Rendering.GraphicsFormat

no documentation

antiAliasing
System.Int32

no documentation memorylessMode -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.Experimental.Rendering.GraphicsFormat format,
System.Int32 antiAliasing,
UnityEngine.RenderTextureMemoryless memorylessMode,
UnityEngine.VRTextureUsage vrUsage
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation

format
UnityEngine.Experimental.Rendering.GraphicsFormat

no documentation

antiAliasing
System.Int32

no documentation

memorylessMode
UnityEngine.RenderTextureMemoryless

no documentation vrUsage -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.Experimental.Rendering.GraphicsFormat format,
System.Int32 antiAliasing,
UnityEngine.RenderTextureMemoryless memorylessMode,
UnityEngine.VRTextureUsage vrUsage,
System.Boolean useDynamicScale
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation

format
UnityEngine.Experimental.Rendering.GraphicsFormat

no documentation

antiAliasing
System.Int32

no documentation

memorylessMode
UnityEngine.RenderTextureMemoryless

no documentation

vrUsage
UnityEngine.VRTextureUsage

no documentation useDynamicScale -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
UnityEngine.RenderTextureDescriptor desc
)

UnityEngine.RenderTextureDescriptor desc-no documentation

Parameters

desc -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.Experimental.Rendering.GraphicsFormat format
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation format -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.RenderTextureFormat format,
UnityEngine.RenderTextureReadWrite readWrite,
System.Int32 antiAliasing,
UnityEngine.RenderTextureMemoryless memorylessMode,
UnityEngine.VRTextureUsage vrUsage,
System.Boolean useDynamicScale
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation

format
UnityEngine.RenderTextureFormat

no documentation

readWrite
UnityEngine.RenderTextureReadWrite

no documentation

antiAliasing
System.Int32

no documentation

memorylessMode
UnityEngine.RenderTextureMemoryless

no documentation

vrUsage
UnityEngine.VRTextureUsage

no documentation useDynamicScale -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.RenderTextureFormat format,
UnityEngine.RenderTextureReadWrite readWrite,
System.Int32 antiAliasing,
UnityEngine.RenderTextureMemoryless memorylessMode,
UnityEngine.VRTextureUsage vrUsage
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation

format
UnityEngine.RenderTextureFormat

no documentation

readWrite
UnityEngine.RenderTextureReadWrite

no documentation

antiAliasing
System.Int32

no documentation

memorylessMode
UnityEngine.RenderTextureMemoryless

no documentation vrUsage -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.RenderTextureFormat format,
UnityEngine.RenderTextureReadWrite readWrite,
System.Int32 antiAliasing,
UnityEngine.RenderTextureMemoryless memorylessMode
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation

format
UnityEngine.RenderTextureFormat

no documentation

readWrite
UnityEngine.RenderTextureReadWrite

no documentation

antiAliasing
System.Int32

no documentation memorylessMode -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.RenderTextureFormat format,
UnityEngine.RenderTextureReadWrite readWrite,
System.Int32 antiAliasing
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation

format
UnityEngine.RenderTextureFormat

no documentation

readWrite
UnityEngine.RenderTextureReadWrite

no documentation antiAliasing -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.RenderTextureFormat format,
UnityEngine.RenderTextureReadWrite readWrite
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation

format
UnityEngine.RenderTextureFormat

no documentation readWrite -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer,
UnityEngine.RenderTextureFormat format
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation

depthBuffer
System.Int32

no documentation format -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height,
System.Int32 depthBuffer
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation

height
System.Int32

no documentation depthBuffer -

Returns

UnityEngine.RenderTexture

rendertexture::​gettemporary
static UnityEngine.RenderTexture GetTemporary(
System.Int32 width,
System.Int32 height
)

System.Int32 width-no documentation

Parameters
width
System.Int32

no documentation height -

Returns

UnityEngine.RenderTexture

rendertexture::​releasetemporary
static System.Void ReleaseTemporary(
UnityEngine.RenderTexture temp
)

UnityEngine.RenderTexture temp-no documentation

Parameters

temp -

Returns

System.Void

rendertexture::​supportsstencil
static System.Boolean SupportsStencil(
UnityEngine.RenderTexture rt
)

UnityEngine.RenderTexture rt-no documentation

Parameters

rt -

Returns

System.Boolean

resolveantialiasedsurface
System.Void ResolveAntiAliasedSurface()
Returns

System.Void

resolveantialiasedsurface
System.Void ResolveAntiAliasedSurface(
UnityEngine.RenderTexture target
)

UnityEngine.RenderTexture target-no documentation

Parameters

target -

Returns

System.Void

setglobalshaderproperty
System.Void SetGlobalShaderProperty(
System.String propertyName
)

System.String propertyName-no documentation

Parameters

propertyName -

Returns

System.Void