Show / Hide Table of Contents

Method ScaleTexture

| Edit this page View Source

ScaleTexture(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
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾