docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ActiveRenderTextureScope

    Provides methods for changing and restoring active RenderTextures.

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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()

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)