llGetTextureOffset
function
- Returns
vector- Energy
- 10
Returns a vector that is the texture offset of face in the x (“U”, horizontal) and y (“V”, vertical) components. The z component is unused.
vector result = llGetTextureOffset(0);Examples
Section titled “Examples”Example 1
//Tells the owner the texture offset on all sidesdefault{ state_entry() { integer i = 0; integer max = llGetNumberOfSides(); while(i < max) { llSay(0,"Face "+(string)i+" texture offset is " + (string)llGetTextureOffset(i)); ++i; } }}Example 2
vector offsetVec = llGetTextureOffset(0);float u = offsetVec.x;float v = offsetVec.y;// z is not used.See also
Section titled “See also”Functions
Section titled “Functions”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.