TileZone
Lens Studio v3.0+
Description
Defines the bounding area used for texture tiling with TextFill’s tileZone
property.
Enum Value | Description |
---|---|
TileZone.Rect |
The attached ScreenTransform’s bounding rectangle is used for texture tiling |
TileZone.Extents |
The Text component’s drawn area (extents) is used for texture tiling |
TileZone.Character |
Each character uses its own drawn area for texture tiling |
TileZone.Screen |
The position of each character in screen space is used for tiling |
Examples
// @input Component.Text text
// @input Asset.Texture texture
script.text.textFill.mode = TextFillMode.Texture;
script.text.textFill.texture = script.texture;
script.text.textFill.tileZone = TileZone.Character;
script.text.textFill.tileCount = 1;
Still Looking for help?
Visit Support