Class RenderTextureExtensions
Extension methods for RenderTexture class.
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 |