Class RenderTexture
Inheritance
RenderTexture
Assembly: UnityEngine.dll
Syntax
public class RenderTexture : Texture
Constructors
|
Improve this Doc
View Source
RenderTexture()
Declaration
protected RenderTexture()
|
Improve this Doc
View Source
RenderTexture(Int32, Int32, Int32)
Declaration
[ExcludeFromDocs]
public RenderTexture(int width, int height, int depth)
Parameters
|
Improve this Doc
View Source
RenderTexture(Int32, Int32, Int32, GraphicsFormat)
Declaration
public RenderTexture(int width, int height, int depth, GraphicsFormat format)
Parameters
|
Improve this Doc
View Source
RenderTexture(Int32, Int32, Int32, RenderTextureFormat)
Declaration
[ExcludeFromDocs]
public RenderTexture(int width, int height, int depth, RenderTextureFormat format)
Parameters
|
Improve this Doc
View Source
RenderTexture(Int32, Int32, Int32, RenderTextureFormat, RenderTextureReadWrite)
Declaration
public RenderTexture(int width, int height, int depth, [DefaultValue("RenderTextureFormat.Default")] RenderTextureFormat format, [DefaultValue("RenderTextureReadWrite.Default")] RenderTextureReadWrite readWrite)
Parameters
|
Improve this Doc
View Source
RenderTexture(RenderTexture)
Declaration
public RenderTexture(RenderTexture textureToCopy)
Parameters
|
Improve this Doc
View Source
RenderTexture(RenderTextureDescriptor)
Declaration
public RenderTexture(RenderTextureDescriptor desc)
Parameters
Properties
|
Improve this Doc
View Source
active
Declaration
public static RenderTexture active { get; set; }
Property Value
antiAliasing
Declaration
public int antiAliasing { get; set; }
Property Value
autoGenerateMips
Declaration
public bool autoGenerateMips { get; set; }
Property Value
bindTextureMS
Declaration
public bool bindTextureMS { get; set; }
Property Value
|
Improve this Doc
View Source
colorBuffer
Declaration
public RenderBuffer colorBuffer { get; }
Property Value
depth
Declaration
public int depth { get; set; }
Property Value
|
Improve this Doc
View Source
depthBuffer
Declaration
public RenderBuffer depthBuffer { get; }
Property Value
|
Improve this Doc
View Source
descriptor
Declaration
public RenderTextureDescriptor descriptor { get; set; }
Property Value
dimension
Declaration
public override TextureDimension dimension { get; set; }
Property Value
Overrides
enableRandomWrite
Declaration
public bool enableRandomWrite { get; set; }
Property Value
format
Declaration
public RenderTextureFormat format { get; set; }
Property Value
height
Declaration
public override int height { get; set; }
Property Value
Overrides
|
Improve this Doc
View Source
isCubemap
Declaration
[Obsolete("Use RenderTexture.dimension instead.", false)]
public bool isCubemap { get; set; }
Property Value
|
Improve this Doc
View Source
isPowerOfTwo
Declaration
public bool isPowerOfTwo { get; set; }
Property Value
|
Improve this Doc
View Source
isVolume
Declaration
[Obsolete("Use RenderTexture.dimension instead.", false)]
public bool isVolume { get; set; }
Property Value
memorylessMode
Declaration
public RenderTextureMemoryless memorylessMode { get; set; }
Property Value
sRGB
Declaration
public bool sRGB { get; }
Property Value
useDynamicScale
Declaration
public bool useDynamicScale { get; set; }
Property Value
useMipMap
Declaration
public bool useMipMap { get; set; }
Property Value
volumeDepth
Declaration
public int volumeDepth { get; set; }
Property Value
vrUsage
Declaration
public VRTextureUsage vrUsage { get; set; }
Property Value
width
Declaration
public override int width { get; set; }
Property Value
Overrides
Methods
ConvertToEquirect(RenderTexture, Camera.MonoOrStereoscopicEye)
Declaration
public void ConvertToEquirect(RenderTexture equirect, Camera.MonoOrStereoscopicEye eye = Camera.MonoOrStereoscopicEye.Mono)
Parameters
Create()
Declaration
Returns
|
Improve this Doc
View Source
DiscardContents()
Declaration
public void DiscardContents()
DiscardContents(Boolean, Boolean)
Declaration
public void DiscardContents(bool discardColor, bool discardDepth)
Parameters
GenerateMips()
Declaration
public void GenerateMips()
GetNativeDepthBufferPtr()
Declaration
public IntPtr GetNativeDepthBufferPtr()
Returns
|
Improve this Doc
View Source
GetTemporary(Int32, Int32)
Declaration
[ExcludeFromDocs]
public static RenderTexture GetTemporary(int width, int height)
Parameters
Returns
|
Improve this Doc
View Source
GetTemporary(Int32, Int32, Int32)
Declaration
[ExcludeFromDocs]
public static RenderTexture GetTemporary(int width, int height, int depthBuffer)
Parameters
Returns
|
Improve this Doc
View Source
GetTemporary(Int32, Int32, Int32, RenderTextureFormat)
Declaration
[ExcludeFromDocs]
public static RenderTexture GetTemporary(int width, int height, int depthBuffer, RenderTextureFormat format)
Parameters
Returns
|
Improve this Doc
View Source
GetTemporary(Int32, Int32, Int32, RenderTextureFormat, RenderTextureReadWrite)
Declaration
[ExcludeFromDocs]
public static RenderTexture GetTemporary(int width, int height, int depthBuffer, RenderTextureFormat format, RenderTextureReadWrite readWrite)
Parameters
Returns
|
Improve this Doc
View Source
GetTemporary(Int32, Int32, Int32, RenderTextureFormat, RenderTextureReadWrite, Int32)
Declaration
[ExcludeFromDocs]
public static RenderTexture GetTemporary(int width, int height, int depthBuffer, RenderTextureFormat format, RenderTextureReadWrite readWrite, int antiAliasing)
Parameters
Returns
|
Improve this Doc
View Source
GetTemporary(Int32, Int32, Int32, RenderTextureFormat, RenderTextureReadWrite, Int32, RenderTextureMemoryless)
Declaration
[ExcludeFromDocs]
public static RenderTexture GetTemporary(int width, int height, int depthBuffer, RenderTextureFormat format, RenderTextureReadWrite readWrite, int antiAliasing, RenderTextureMemoryless memorylessMode)
Parameters
Returns
|
Improve this Doc
View Source
GetTemporary(Int32, Int32, Int32, RenderTextureFormat, RenderTextureReadWrite, Int32, RenderTextureMemoryless, VRTextureUsage)
Declaration
[ExcludeFromDocs]
public static RenderTexture GetTemporary(int width, int height, int depthBuffer, RenderTextureFormat format, RenderTextureReadWrite readWrite, int antiAliasing, RenderTextureMemoryless memorylessMode, VRTextureUsage vrUsage)
Parameters
Returns
|
Improve this Doc
View Source
GetTemporary(Int32, Int32, Int32, RenderTextureFormat, RenderTextureReadWrite, Int32, RenderTextureMemoryless, VRTextureUsage, Boolean)
Declaration
public static RenderTexture GetTemporary(int width, int height, [DefaultValue("0")] int depthBuffer, [DefaultValue("RenderTextureFormat.Default")] RenderTextureFormat format, [DefaultValue("RenderTextureReadWrite.Default")] RenderTextureReadWrite readWrite, [DefaultValue("1")] int antiAliasing, [DefaultValue("RenderTextureMemoryless.None")] RenderTextureMemoryless memorylessMode, [DefaultValue("VRTextureUsage.None")] VRTextureUsage vrUsage, [DefaultValue("false")] bool useDynamicScale)
Parameters
Returns
|
Improve this Doc
View Source
GetTemporary(RenderTextureDescriptor)
Declaration
public static RenderTexture GetTemporary(RenderTextureDescriptor desc)
Parameters
Returns
IsCreated()
Declaration
Returns
MarkRestoreExpected()
Declaration
public void MarkRestoreExpected()
Release()
Declaration
ReleaseTemporary(RenderTexture)
Declaration
public static void ReleaseTemporary(RenderTexture temp)
Parameters
|
Improve this Doc
View Source
ResolveAntiAliasedSurface()
Declaration
public void ResolveAntiAliasedSurface()
|
Improve this Doc
View Source
ResolveAntiAliasedSurface(RenderTexture)
Declaration
public void ResolveAntiAliasedSurface(RenderTexture target)
Parameters
SetGlobalShaderProperty(String)
Declaration
public void SetGlobalShaderProperty(string propertyName)
Parameters
Type |
Name |
Description |
String |
propertyName |
|
SupportsStencil(RenderTexture)
Declaration
public static bool SupportsStencil(RenderTexture rt)
Parameters
Returns
Extension Methods