Class Texture2DFactory
Class to help create Texture2Ds.
Inheritance
object
Texture2DFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.Services
Syntax
public static class Texture2DFactory
Methods
CreateDefault(int, int, bool)
Creates a new instance of Texture2D with a set of default specifications.
Declaration
public static Texture2D CreateDefault(int width, int height, bool fill = true)
Parameters
Type | Name | Description |
---|---|---|
int | width | The texture width. |
int | height | The texture height. |
bool | fill | If true the texture will be automatically filled with transparent pixels. |
Returns
Type | Description |
---|---|
UnityEngine.Texture2D | The created texture. |