Method CreateScaledTexture
| Edit this page View SourceCreateScaledTexture(Texture2D, int)
Create a new, scaled texture from a given texture.
Declaration
public static Texture2D CreateScaledTexture(Texture2D texture, int width)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2D | texture | Source texture to scale |
| int | width | New width of the scaled texture |
Returns
| Type | Description |
|---|---|
| Texture2D |