# SetObjectMeshUVScale

## Description

Modifies the mesh UVs to scale them by the specified amount. This may push the UV coordinates outside the range 0.0 to 1.0, in which case the image wrap mode will be used to either clamp or repeat the texture. Use SetImageWrapU and SetImageWrapV to set the wrap mode. A scale value of 1 will leave the UV coordinates with their default values, whilst a scale value of 2.0 would double the number of times the texture appears across the mesh (assuming the wrap mode is set to repeat). Note that the image must be a power of 2 in size to use the repeat mode.

## Definition

SetObjectMeshUVScale( objID, meshIndex, textureStage, scaleU, scaleV )

void agk::SetObjectMeshUVScale( UINT objID, UINT meshIndex, UINT textureStage, float scaleU, float scaleV )

## Parameters

- objID - The ID of the object to modify.
- meshIndex - The index of the mesh to modify.
- textureStage - The texture stage of the UVs to modify, in the range 0 to 7
- scaleU - The scale to use in the U direction, the default is 1
- scaleV - The scale to use in the V direction, the default is 1