TileZone
EnumDefines the bounding area used for texture tiling with TextFill's tileZone property.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Index
Example
// @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;
Enumeration Members
Character
Character:
number
Each character uses its own drawn area for texture tiling
Extents
Extents:
number
The Text component's drawn area (extents) is used for texture tiling
Rect
Rect:
number
The attached ScreenTransform bounding rectangle is used for texture tiling
Screen
Screen:
number
The position of each character in screen space is used for tiling