Method ScaleTexture
| Improve this Doc View SourceScaleTexture(Texture2D, int)
Scale a texture to a certain width, aspect ratio is preserved.
Declaration
public static void ScaleTexture(Texture2D texture, int width)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | texture | Texture to scale |
int | width | New width of the scaled texture |