Class Texture2DFactory
Class to help create Texture2Ds.
Inheritance
System.Object
Texture2DFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: InsaneScatterbrain.Services
Syntax
public static class Texture2DFactory
Methods
CreateDefault(Int32, Int32, Boolean)
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 |
---|---|---|
System.Int32 | width | The texture width. |
System.Int32 | height | The texture height. |
System.Boolean | fill | If true the texture will be automatically filled with transparent pixels. |
Returns
Type | Description |
---|---|
UnityEngine.Texture2D | The created texture. |