docs.unity3d.com
    Show / Hide Table of Contents

    Struct ActiveRenderTextureScope

    Provides methods for changing and restoring active RenderTextures.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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()
    Implements
    IDisposable.Dispose()
    Back to top
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on Friday, November 3, 2023