Struct ActiveRenderTextureScope
Provides methods for changing and restoring active RenderTextures.
Implements
Inherited Members
Namespace: UnityEditor.TerrainTools
Assembly: Unity.TerrainTools.Editor.dll
Syntax
public struct ActiveRenderTextureScope : IDisposable
Constructors
ActiveRenderTextureScope(RenderTexture)
Initializes and returns an instance of ActiveRenderTextureScope.
Declaration
public ActiveRenderTextureScope(RenderTexture rt)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTexture | rt | The RenderTexture to set as active. |
Remarks
Call this constructor to swap the previous active RenderTexture with the RenderTexture that is passed in.
Methods
Dispose()
Restores the previous RenderTexture.
Declaration
public void Dispose()