field
ImageAdjustment.UVScale
Specifies how much to scale the image in UV space, where UVs go from (-1, -1)
(bottom-left) to (1, 1)
(top-right).
Declaration
public UnityEngine.Vector2 UVScale;
Remarks
E.g.
UVScale == Vector2.one * 2
will zoom in by a factor of2
, rendering the inner half of the image and clipping the outer half.UVScale == Vector2.one * 0.5f
will zoom out by a factor of2
, rendering the full image surrounded by either empty space, tiling of the same image, or adjacent
sprites in the source sprite sheet. Surrounding content is dependent on the underlying UnityEngine.Texture or UnityEngine.Sprite settings, not this UVScale field.