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