Class Texture2DExtensions
Extension methods for Texture2D class.
Namespace: Unity.AnimeToolbox
Syntax
public static class Texture2DExtensions
Methods
SetPixelsWithColor(Texture2D, Color)
Set the pixels of a Texture2D with a certain color
Declaration
public static void SetPixelsWithColor(this Texture2D tex, Color color)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | tex | The Texture2D to be modified. |
Color | color | The color to apply. |