RenderTexture
Inherits from Texture
Render textures are textures that can be rendered to.
They can be used to implement image based rendering effects, dynamic shadows,
projectors, reflections or surveillance cameras.
All rendering goes into the active RenderTexture (active class property).
If the active RenderTexture is null everything is rendered to the main window.
Note that while RenderTexture assets can be only power-of-two
size, it is possible to create a non-power-of-two (rect) render textures from scripts.
These are most often used for image post processing effects.
RenderTexture class is only available in Unity Pro.
Variables
| width |
The width of the render texture in pixels.
|
| height |
The height of the render texture in pixels.
|
| depth |
The precision of the render texture's depth buffer in bits (0, 16, 24 are supported)
|
| format |
The format of the render texture.
|
| useMipMap |
Generate mipmap levels?
|
| isCubemap |
If enabled, this Render Texture will be used as a Cubemap
|
Constructors
Functions
Class Variables
| active |
The active render texture.
|
Class Functions
Inherited members
Inherited Variables
|
width |
Width of the texture in pixels (Read Only)
|
|
height |
Height of the texture in pixels (Read Only)
|
|
filterMode |
Filtering mode of the texture.
|
|
anisoLevel |
Anisotropic filtering level of the texture.
|
|
wrapMode |
Wrap mode (Repeat or Clamp) of the texture.
|
|
mipMapBias |
Mip map bias of the texture.
|
|
name |
The name of the object.
|
|
hideFlags |
Should the object be hidden, saved with the scene or modifiable by the user?
|
Inherited Functions
Inherited Class Functions
|
operator bool |
Does the object exist?
|
|
Instantiate |
Clones the object original and returns the clone.
|
|
Destroy |
Removes a gameobject, component or asset.
|
|
DestroyImmediate |
Destroys the object obj immediately. It is strongly recommended to use Destroy instead.
|
|
FindObjectsOfType |
Returns a list of all active loaded objects of Type type.
|
|
FindObjectOfType |
Returns the first active loaded object of Type type.
|
|
operator == |
Compares if two objects refer to the same
|
|
operator != |
Compares if two objects refer to a different object
|
|
DontDestroyOnLoad |
Makes the object target not be destroyed automatically when loading a new scene.
|
|