Format
typescript
RenderTexture.activeclass: RenderTexture
Description
The currently active render texture.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
RenderTexture | The render texture. |
Code Example
typescript
function Test() {
try {
let temp_texture = RenderTexture.GetTemporary(100, 100, RenderTextureFormat.Default, DepthType.Depth24Stencil8, AntiAliasingLevel.x8);
RenderTexture.active = temp_texture;
// do something
RenderTexture.active = null;
} catch (error) {
Debug.Log(error);
}
}