Lens Scripting API

    Enumeration TileZone

    Defines the bounding area used for texture tiling with TextFill's tileZone property.

    // @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;
    Index

    Enumeration Members

    Enumeration Members

    Character: number

    Each character uses its own drawn area for texture tiling

    Extents: number

    The Text component's drawn area (extents) is used for texture tiling

    Rect: number

    The attached ScreenTransform bounding rectangle is used for texture tiling

    Screen: number

    The position of each character in screen space is used for tiling

    MMNEPVFCICPMFPCPTTAAATR