Scales the UV texture coordinates of all faces in this Mesh by the exact given amounts.
If you only wish to scale one coordinate, pass a value of one to the other.
Due to a limitation in WebGL1 you can only UV scale textures that are a power-of-two in size. Scaling NPOT textures will work but will result in clamping the pixels to the edges if you scale beyond a value of 1. Scaling below 1 will work regardless of texture size.
Note that if this Mesh is using a frame from a texture atlas then you will be unable to UV scale its texture.
name | type | description |
---|---|---|
x | number |
The amount to horizontally scale the UV coordinates by. |
y | number |
The amount to vertically scale the UV coordinates by. |
This Game Object instance.