# llGetTextureOffset

*LSL function*

```lsl
vector vector llGetTextureOffset(integer face);
```

- `integer face`: Face number or ALL_SIDES.

- Returns: `vector`
- Energy: 10

Returns a [vector](https://wiki.secondlife.com/wiki/vector) that is the texture offset of **face** in the x ("U", horizontal) and y ("V", vertical) components. The z component is unused.

```lsl title="How to use" frame="terminal"
vector result = llGetTextureOffset(0);
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl
//Tells the owner the texture offset on all sides
default
{
    state_entry()
    {
        integer i = 0;
        integer max = llGetNumberOfSides();
        while(i < max)
        {
            llSay(0,"Face "+(string)i+" texture offset is " + (string)llGetTextureOffset(i));
            ++i;
        }
    }
}
```

</details>

<details>
<summary>Example 2</summary>

```lsl
vector offsetVec = llGetTextureOffset(0);
float u = offsetVec.x;
float v = offsetVec.y;
// z is not used.
```

</details>

## See also

### Functions

- [llOffsetTexture](/functions/llOffsetTexture/)
- [llGetNumberOfSides](/functions/llGetNumberOfSides/)

---

*Source: [LlGetTextureOffset](https://wiki.secondlife.com/wiki/LlGetTextureOffset) on the Second Life Wiki. Content from the Second Life Wiki articles LlGetTextureOffset (revision 1194268, 2015-01-22), Template:LSL VR (revision 12853, 2007-02-23) and Template:LSL Function/face (revision 1175878, 2013-01-06), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetTextureOffset/
