Class Texture2DExtensions
Inheritance
object
Texture2DExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 |
---|---|---|
UnityEngine.Texture2D | texture | The texture. |
Returns
Type | Description |
---|---|
UnityEngine.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 |
---|---|---|
UnityEngine.Texture2D | texture | The texture. |
UnityEngine.Color | fillColor | The fill color. |