Class Texture2DExtensions
Inherited Members
Namespace: InsaneScatterbrain.Extensions
Syntax
public static class Texture2DExtensions
Methods
Clone(Texture2D)
Creates a clone of the texture instance.
Declaration
public static Texture2D Clone(this Texture2D texture)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | texture | The texture. |
Returns
Type | Description |
---|---|
Texture2D | The clone texture. |
Fill(Texture2D, Color)
Fills the texture completely with the given color.
Declaration
public static void Fill(this Texture2D texture, Color fillColor)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | texture | The texture. |
Color | fillColor | The fill color. |