docs.unity.cn
    Show / Hide Table of Contents

    Struct ActiveRenderTextureScope

    Provides methods for changing and restoring active 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
    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()
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Wednesday, April 5, 2023
    Terms of use