FREE TRIAL

|

☀
☾
struct

ImageAdjustment

The position and scale adjustments to apply when rendering an image.

Fields

CenterUV

Specifies the center position of the image in UV space, where UVs go from (-1, -1) (bottom-left) to (1, 1) (top-right).

PixelsPerUnitMultiplier

A multiplier that scales how Sliced and Tiled images are rendered. Specifically, PixelsPerUnitMultiplier determines how many pixels from the target image fit into a 1x1 square in the target UIBlock2D's local space.

UVScale

Specifies how much to scale the image in UV space, where UVs go from (-1, -1) (bottom-left) to (1, 1) (top-right).

Properties

ScaleMode

get: Gets the current scale mode.
set: Sets the scale mode and resets both CenterUV and UVScale to Vector2.zero and Vector2.one, respectively.

Constructors

ImageAdjustment(Vector2, Vector2)

Constructs a new ImageAdjustment with ScaleMode set to Manual.

See Also

UIBlock2D.ImageAdjustment
☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC