Class RenderTextureExtensions | Anime Toolbox | 0.4.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class RenderTextureExtensions

    Extension methods for RenderTexture class.

    Inheritance
    Object
    RenderTextureExtensions
    Namespace: Unity.AnimeToolbox
    Syntax
    public static class RenderTextureExtensions

    Methods

    Clear(RenderTexture, Boolean, Boolean, Color)

    Clear a RenderTexture

    Declaration
    public static void Clear(this RenderTexture rt, bool clearDepth, bool clearColor, Color bgColor)
    Parameters
    Type Name Description
    RenderTexture rt

    the target RenderTexture

    Boolean clearDepth

    Should the depth buffer be cleared?

    Boolean clearColor

    Should the color buffer be cleared?

    Color bgColor

    The color to clear with, used only if clearColor is true.

    ClearAll(RenderTexture)

    Clear the depth and the color of a RenderTexture using RGBA(0,0,0,0)

    Declaration
    public static void ClearAll(this RenderTexture rt)
    Parameters
    Type Name Description
    RenderTexture rt

    the target RenderTexture

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • 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 18 October 2023